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.

Description: Returns the base raised to the power of the exponent.

Example: 2 raised to the power of 3 => 8

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

Related functions

© 2026 Heifara Buval