When i write the code as below
<p id="demo"></p>
<script>
document.getElementById('demo').innerHTML = 0xFF;
</script>
Then Browser shows the result 255 ( as it should be). But when i used
<p id="demo"></p>
below the script , browser do not show any thing. e.g.
<script>
document.getElementById('demo').innerHTML = 0xFF;
</script>
<p id="demo"></p>