JavaScript Math

The Math.log() Method

Math.log() returns the natural logarithm (base E) of a number: