JavaScript Reference/Javascript Methods/pow
Версия от 18:30, 25 мая 2010; (обсуждение)
"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.