From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Math Object
The log() method returns the natural logarithm (base E) of a number.
| Math.log(x) |
| Parameter | Description |
|---|---|
| x | Required. A number |
Note: If the parameter x is negative, NaN is returned.
ExampleUse the log() method on different numbers:
The output of the code above will be:
Try it yourself » |
JavaScript Math Object
From http://www.w3schools.com (Copyright Refsnes Data)