log
The Math.log() method returns the natural logarithm (base E) of a number.
Syntax
Math.log(x)
Returns
The natural logarithm of the number. NaN if the number is negative. -Infinity if the number is 0.
Parameters
- x (float)
- A number.