JavaScript SQRT2 Property
Example
Return the square root of 2:
Math.SQRT2;
Output result:
1.4142135623730951
Try it »
Definition and Usage
The SQRT2 property returns the square root of 2. This value is approximately 1.4142135623730951.
Browser support





All major browsers support the SQRT2 property.
Syntax
Math.SQRT2
Technical Details
| Return Value: | A number, returns the square root of 2. |
|---|---|
| JavaScript version: | 1.0 |
JavaScript Math object