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>
function Function1()
{
document.getElementById("demo").innerHTML=Math.cbrt(792);
}
</script>
  • (A) 972
  • (B) 81
  • (C) 9
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 29
  • 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.