JavaScript Math.log()
JavaScript Math.log()
The Math.log() method is used to return the natural logarithm to the base E of a number.
Syntax:-
Its syntax is:- Math.log(x)
Return:-
Its return is:- number representing the natural logarithm of the number
Further Explanation:-
Parameter | Description |
---|---|
x | Required. A number. |