JavaScript Reference/Javascript Methods/pow

Материал из Web эксперт
Перейти к: навигация, поиск

"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.