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: Numerical value representing Euler's number (Euler's number).
JavaScript version: ECMAScript 1

Browserv understøttelse

Math.E Er ES1-karaktæristik (JavaScript 1999). Alle browsere understøtter det fuldt ud:

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

Relaterede sider

Tutorial:JavaScript matematik