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.

power()

Type above to see the result…

Want to go further? Chain power with other functions, pipe one output into the next and watch your data transform in the visual Playground.

Related functions

© 2026 Heifara Buval