JavaScript power
Math.pow() raises a base to an exponent and returns the result. In modern JavaScript the ** operator does the same: base ** exponent.
Syntax
Math.pow(base, exponent) Examples
| Input | Arguments | Output |
|---|---|---|
| 2 | 3 | 8 |
Try it live
Type your input and see power transform it instantly.
Want to go further? Chain power with other functions in the visual Playground — pipe one output into the next and watch your data transform.