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