JavaScript » Math » log

Syntax:
Math.log(x)

This method returns the natural logarithm (base E) of a number. If you pass the log method the number 0, the Netscape browser will return -Infinity, and with an argument of a negative number NaN. In both these cases Internet Explorer returns an error message.