What will be the output of the following JavaScript code? [code] <p id="demo"></p> <script> function myFunction() { var x = 100;

Trang Esther

New member
What will be the output of the following JavaScript code?
Code:
<p id="demo"></p>
<script>
function myFunction() 
{
   var x = 100;
   document.getElementById("demo").innerHTML = x.NEGATIVE_INFINITY;
}
</script>
A. True
B. False
C. Error
D. Undefiend
 

Tìm kiếm

Back
Top