JS Built-ins
MathEbeginner

Math.E β€” e^1 equals Math.E

πŸ“– Usage Example
// Euler's number β€” base of natural logarithms
Math.E          // β†’ 2.7182818284...
Math.log(Math.E) // β†’ 1

Use Math.E when you need Euler's number β€” the base of natural logarithm calculations.

Math.E

Math.exp(1) raises Euler's number to the power of 1, which should equal Math.E.

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

πŸ’‘ Hints (2)
  • β€’ Math.exp(n) computes e^n.
  • β€’ Math.exp(1) should be identical to Math.E.