JavaScript Exponentiation Operator

JavaScript Exponentiation Operator


JavaScript Exponentiation Operator
 
Gives the same result as an Exponentiation operator like Math.pow(a, b).
 
The Syntax of the Exponentiation Operator is as follows: - 
Math.pow(10, 2) 🡺 10 ** 2
 
Example 1 –
 
 
Output –