From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Math Object
The pow() method returns the value of x to the power of y (xy).
| Math.pow(x,y) |
| Parameter | Description |
|---|---|
| x | Required. A number |
| y | Required. A number |
ExampleUse the pow() method on different number combinations:
The output of the code above will be:
Try it yourself » |
JavaScript Math Object
From http://www.w3schools.com (Copyright Refsnes Data)