JavaScript Reference/Javascript Methods/log

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

"log()" Example

    
<html>
<body>
<button onclick="alert(Math.log(1));">LOG</button>
</body>
</html>



"log()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |Math                                                          |
+----------------+--------------------------------------------------------------+



"log()" Syntax, Parameters and Note

Note:
Natural logarithm of a number.
    
Syntax:
    
Math.log(param1)
Parameters:
    param1   Required; the number to convert.