Javascript Reference - JavaScript E Property








The E property returns the Euler's number and the base of natural logarithms, approximately 2.718.

Browser Support

E Yes Yes Yes Yes Yes

Syntax

Math.E

Return Value

A Number, representing Euler's number.

Example

The following code shows how to find out the value of e, the base of the natural logarithms.


console.log(Math.E);

The code above generates the following result.