What will be the output of the following JavaScript code? [code] <p id="demo"></p> <script> document.getElementById("demo").innerHTML =

What will be the output of the following JavaScript code?
Code:
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = Number(true); 
</script>
A. 1
B. 0
C. true
D. undefined
 

Tìm kiếm

Back
Top