LOG in JS
Last updated
Last updated
Returns the logarithm using the Euler's number as a base. ().
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.
expression
: Numeric expression. It must be positive, otherwise returns NaN.
Same data type sent through parameter as a numeric expression.