JS Built-ins
← Math106 / 215
Mathexpbeginner

Math.exp(0) Equals 1

πŸ“– 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)

Returns e raised to the power of x. Math.exp(0) returns 1 because e⁰ = 1.

Challenge: Use Math.exp() and verify its result for input 0.

πŸ’‘ Hints (2)
  • β€’ Any number raised to the power 0 equals 1
  • β€’ exp(0) = e⁰ = 1