Which is the exponentiation operator in JavaScript?

32. Which is the exponentiation operator in JavaScript?

  1. exp()
  2. ^
  3. **
  4. pow

Answer: C) **

Explanation:

The exponentiation operator in JavaScript is ** which is used to calculate the result of first operand's to the power of the second operators i.e., x**y = x to the power of y (xy).

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.