SQRT2intermediate// Square root of 2
Math.SQRT2 // β 1.4142135623...
Math.SQRT2 === Math.sqrt(2) // β trueUse Math.SQRT2 as a precomputed constant equal to β2, useful in geometry and diagonal calculations.
The diagonal of a square with side length s is sβ2. For a unit square, diagonal = β2.
Challenge: Use Math.SQRT2 to compute diagonals of squares.