English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript Math.pow() Method

 JavaScript Math Object

'sMath.pow()The method returns the base raised to the power of the exponent, that is, the baseExponent.

Since pow() is a static method of Math, you should always use it asMath.pow(), rather than as a method of the created Math object.

Syntax:

Math.pow(x, y)
Math.pow(5, 3);// 125
Test and See‹/›

Browser Compatibility

All browsers fully support the Math.pow() method:

Method
Math.pow()IsIsIsIsIs

Parameter Value

ParameterDescription
xBase
yUsed to raise the base to the power of the exponent

Technical Details

Return Value:Represents a number that is the product of a given base raised to the power of a given exponent
JavaScript Version:ECMAScript 1

 JavaScript Math Object