Math.pow

pow — Returns the value of x to the power of y.

Description

Math.pow(number x, number y)

Parameters

Name Description Type Default Optional
x number No
y number No

Examples

Example #1 – pow example
console.log(Math.pow(2, 2)); // 4 console.log(Math.pow(2, 4)); // 16 console.log(Math.pow(16, 4)); // 65536

External references