JS Built-ins
← Math108 / 215
Mathexpintermediate

Math.exp(2) β‰ˆ 7.389

πŸ“– 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(2) returns approximately 7.3891 (eΒ²).

Challenge: Compute and verify Math.exp(2).

πŸ’‘ Hints (2)
  • β€’ eΒ² = e * e β‰ˆ 7.389
  • β€’ Each unit increase in x multiplies the result by e