E  Math  class property JS Home  <<  JS Reference  <<  Math  <<  E

Description

Represents Euler's constant which is the base of natural logarithms.

  • Like all class properties E should be used on the class rather than an instance of the class.

Syntax

Signature Description
Math.ERepresents Euler's constant which is the base of natural logarithms.

Parameters

None.

Examples

The code below displays E usage.



alert('Eulers Constant: ' + Math.E); // 2.71828...

Press the button below to action the above code:

Related Tutorials

JavaScript Advanced Tutorials - Lesson 4 - Math

JavaScript Basics

JavaScript Basics

JavaScript Intermediate

JavaScript Intermediate

JavaScript Advanced

JavaScript Advanced

JavaScript Reference

JavaScript Entities

Globals

Math

Class Properties
E
LN2
LN10
LOG2E
LOG10E
PI
SQRT1_2
SQRT2
Instance Properties
None.
Class Methods
abs()
acos()
asin()
atan()
atan2()
ceil()
cos()
exp()
floor()
log()
max()
min()
pow()
random()
round()
sin()
sqrt()
tan()
Instance Methods Getters
None.
Instance Methods Setters
None.

Statements

Operators