LOG in JS
Description
Returns the logarithm using the Euler's number as a base. (JavaScript LOG function Documentation).
Unfortunately, JavaScript does not provide a method that receives a logarithm base through its parameters, but this can be solved by dividing the base by the argument.
Sample Source Pattern
Syntax
Arguments
expression
: Numeric expression. It must be positive, otherwise returns NaN.
Return Type
Same data type sent through parameter as a numeric expression.
Examples
Last updated