In JavaScript, the arithmetic operator _______ is used to exponentiate a number.
- **
- ^
- exp
- pow
In JavaScript, the ** operator is used to exponentiate a number. For example, 2 ** 3 evaluates to 8, as it calculates 2 raised to the power of 3. This operator was introduced in ECMAScript 2016 (ES6) to provide a concise way of performing exponentiation.
Loading...