ES6 - Math-E Property


Advertisements


This is an Euler's constant and the base of natural logarithms, approximately 2.718.

Syntax

Math.E

Example

console.log(Math.E) // the root of the natural logarithm: ~2.718

Output

2.718281828459045           

es6_math.htm

Advertisements