Math.SQRT2 property
The Math.SQRT2 property
contains the square root of 2.
Syntax
Math.SQRT2;
Example
Let's output the square
root of 2:
console.log(Math.SQRT2);
The code execution result:
1.4142135623730951
See also
-
the
Math.SQRT1_2property
that contains the square root of 1/2