Question:medium

What will be the output of the following JavaScript code?
<html> <body> <script> document.write(Math.pow(3,2)); </script> </body> </html>

Show Hint

In modern JavaScript (ES6+), you can also use the exponentiation operator () to achieve the exact same result: 3 2 evaluates to 9.
Updated On: Jun 29, 2026
  • 4
  • 9
  • 6
  • 8
Show Solution

The Correct Option is B

Solution and Explanation

Was this answer helpful?
0