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

What will be the output of the following JavaScript code?
Code:
<p id="demo"></p>
<script>
function myFunction() 
{
   document.getElementById("demo").innerHTML = Number.NEGATIVE_INFINITY;
}
</script>
A. -1000
B. -infinity
C. infinity
D. undefined
 

Tìm kiếm

Back
Top