A

Admin • 833K Points
Coach

Q. Which is the exponentiation operator in JavaScript?

  • (A) exp()
  • (B) ^
  • (C) **
  • (D) pow
  • Correct Answer - Option(C)
  • Views: 21
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

In JavaScript, ** is the exponentiation operator used to raise a number to the power of another.
Example:

console.log(2 ** 3); // Output: 8

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.