JS Built-ins
MathEintermediate

Math.E β€” e^2 approximation

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

eΒ² is approximately 7.389. You can compute it as Math.E * Math.E or Math.exp(2).

Challenge: Verify the value of eΒ².

πŸ’‘ Hints (2)
  • β€’ eΒ² β‰ˆ 7.38905609893065
  • β€’ Both Math.exp(2) and Math.E * Math.E give the same result.