JS Built-ins
← Math36 / 215
MathSQRT2beginner

Math.SQRT2 β€” the value

πŸ“– Usage Example
// Square root of 2
Math.SQRT2              // β†’ 1.4142135623...
Math.SQRT2 === Math.sqrt(2)   // β†’ true

Use Math.SQRT2 as a precomputed constant equal to √2, useful in geometry and diagonal calculations.

Math.SQRT2

The square root of 2, approximately 1.4142135623730951.

Challenge: Explore the value of Math.SQRT2 and verify its type and range.

πŸ’‘ Hints (2)
  • β€’ Math.SQRT2 = √2 β‰ˆ 1.4142135623730951.
  • β€’ It is the length of the diagonal of a unit square.