JavaScript E property

Definition and usage

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

Math.E The property represents the arithmetic constant e, which is the base of natural logarithms, 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

Support du navigateur

Math.E C'est une caractéristique ES1 (JavaScript 1999). Tous les navigateurs le supportent pleinement :

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

Pages connexes

Tutoriel :Mathématiques JavaScript