You use the exponentiation operator (**) in a webpage for mathematical calculation.
It helps in raising one value (number) to the power of another, which are also called operands, and together with the double asterisk (**), they perform the exponentiation.
Syntax:
let result = leftOperand ** rightOperand;
Example:
let a = 2;
let b = 3;
let exp = a ** b;
console.log("The power is: " + exp);
Output:
