offline version v3


52 of 264 menu

Math.E property

{{desc: The Math.E property contains the value of the number e (exponential constant), which is approximately equal to 2.7 in JavaScript.}}

The Math.E property contains the number e (Euler's or exponential constant) up to a certain decimal place.

Syntax

Math.E;

Example

Let's display the value of this constant:

console.log(Math.E);

The code execution result:

2.718281828459045

See also

  • the Math.exp method
    that raises the number e to a given power
enru