JavaScript Math.SQRT2
Definition and Usage
Math.SQRT2 returns the square root of 2, approximately 1.414.
Browser Support
Math.SQRT2
is an ECMAScript1 (ES1) feature.
ES1 (JavaScript 1997) is fully supported in all browsers:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |
Syntax
Math.SQRT2
Return Value
A number representing the square root of 2. |