E

Euler's constant and the base of natural logarithms, approximately 2.718. Math is static, read-only.

Property of

Math

Examples

The following function returns Euler's constant:

function getEuler() {
      return Math.E
}

Description

Because E is a static property of Math, you always use it as Math.E, rather than as a property of a Math object you created.