A

Admin • 833K Points
Coach

Q. Which one of the following is correct output for the following given JavaScript code:

Code:
<p id="demo"></p>
<script>
functionourFunction()
{
document.getElementById("demo").innerHTML=Math.abs(-7.25);
}
</script>
  • (A) 7
  • (B) -7.25
  • (C) 25
  • (D) -7
  • Correct Answer - Option(C)
  • Views: 21
  • Filed under category JavaScript
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.