JS Built-ins
← Math12 / 215
MathLN10beginner

Math.LN10 β€” equals Math.log(10)

πŸ“– Usage Example
// Natural logarithm of 10
Math.LN10          // β†’ 2.302585092...
Math.log(10) === Math.LN10   // β†’ true

Use Math.LN10 as a precomputed constant for natural log base-10 conversions to avoid recalculation.

Math.LN10

Math.LN10 is identical to calling Math.log(10), the natural log of 10.

Challenge: Verify that Math.log(10) === Math.LN10.

πŸ’‘ Hints (2)
  • β€’ Math.log computes the natural log.
  • β€’ Math.LN10 is a cached constant equal to Math.log(10).