JavaScript tutorial:
log method

 

Applies to: Math Object

The log method is use to get the natural logarithm of a number.

Syntax

Math.log(number)

The number argument is a numeric expression for which the natural logarithm is sought.

Return value

The return value is the natural logarithm of number. The base is e.

See also: Math Object Methods