JavaScript Reference/Javascript Methods/pow
"pow()" Example
<html>
<body>
<button onclick="alert(Math.pow(2,2));">POW</button>
</body>
</html>
"pow()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Math |
+----------------+--------------------------------------------------------------+
"pow()" Syntax, Parameters and Note
Note:
Calculate the power.
Syntax:
Math.pow(param1, param2)
Parameters:
param1 Required; the number to use as the base.
param2 Required; the number to use as the exponent.