JavaScript Math.SQRT2
Description
The Math.SQRT2
property returns the square root of 2.
The Math.SQRT2
property returns approximately 1.414.
Syntax
Math.SQRT2
Return Value
Type | Description |
Number | The square root of 2. |
Browser Support
Math.SQRT2
is an ECMAScript1 (JavaScriopt 1997) feature.
It is supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |