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