Return the value of the number 4 to be the power of 3 (4*4*4):
The result will be:
The pow() method returns the value of x to the power of y (xy).
![]()
The pow() method is supported in all major browsers.
| Parameter | Description |
|---|---|
| x | Required. The base |
| y | Required. The exponent |
| Type | Description |
|---|---|
| Number | The value of x to the power of y (xy). |
| JavaScript Version: | 1.0 |
|---|
Use the pow() method on different numbers:
The result of a,b,c,d,e, and f will be:
JavaScript Math Object
Your message has been sent to W3Schools.