JS Built-ins
← Math107 / 215
Mathexpbeginner

Math.exp(1) Equals Math.E

πŸ“– Usage Example
// e raised to the power of x
Math.exp(0)   // β†’ 1
Math.exp(1)   // β†’ 2.7182... (Math.E)

Use Math.exp(x) to raise e to the power x β€” the inverse of the natural logarithm.

Math.exp(x)

Math.exp(1) returns Math.E (Euler's number, approximately 2.718).

Challenge: Verify that Math.exp(1) equals Math.E.

πŸ’‘ Hints (2)
  • β€’ eΒΉ = e = Math.E β‰ˆ 2.71828...
  • β€’ Math.E is Euler's number