JavaScript Math method: pow()
[this page | pdf | back links]
The pow() method (of the Math object)
returns x to the power y. Note, ^ has a different meaning in
JavaScript.
It
has the following syntax with the following parameters:
Math.pow(x, y)
|
Parameter
|
Required / Optional
|
Description
|
|
x
|
Required
|
Input value (the base)
|
|
y
|
Required
|
Input value (the
exponent)
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript Numbers and Math