JavaScript E property

Definition and usage

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

Math.E The property represents the arithmetic constant e, which is the base of the natural logarithm, and its value is approximately 2.71828.

Example

Returns Euler's number:

Math.E;

Try it yourself

Syntax

Math.E

Technical details

Return value: A number representing Euler's number (Euler's number).
JavaScript version: ECMAScript 1

Browser Support

Math.E Is an ES1 Feature (JavaScript 1999). All browsers fully support it:

Chrome IE Edge Firefox Safari Opera
Support Support Support Support Support Support

Related Pages

Tutorial:JavaScript Math