ES6 - Math-LN2 Property


Advertisements

It returns the natural logarithm of 2 which is approximately 0.693.

Syntax

Math.LN2 

Example

console.log(Math.LN10) // the natural logarithm of 10: ~2.303 

Output

0.6931471805599453          
es6_math.htm
Advertisements