Home »
MCQs »
JavaScript MCQs
Which is the exponentiation operator in JavaScript?
32. Which is the exponentiation operator in JavaScript?
- exp()
- ^
- **
- 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).