JavaScriptNumberMath.log

Returns the natural logarithm (base e) of a number.

문법

Math.log(x)

예제

아래 값을 입력하면 예제에 즉시 반영됩니다.

console
Math
console.log(Math.log(Math.E));   // 1
console.log(Math.log(1));        // 0