Single Choice Easy

QWhat will the following JavaScript code produce?

<p id="demo"></p>
<script>
function myFunction() 
{
   document.getElementById("demo").innerHTML = Number.POSITIVE_INFINITY;
}
</script>

ID: #5252 Javascript Graphics and Rendering MCQ 167 views
Question Info
#5252Q ID
EasyDifficulty
Javascript Graphics and Rendering MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 10000
  • B -infinity
  • C infinity
  • D error
Correct Answer

Explanation

Positive infinity is represented by the POSITIVE INFINITY property. Positive infinity is defined as something greater than any other number.

Share This Question

Challenge a friend or share with your study group.