Return the square root of 2:
The result will be:
The SQRT2 property returns the square root of 2, approximately 1.414.
![]()
The SQRT2 property is supported in all major browsers.
| Return Value: | A Number, representing the square root of 2 |
|---|---|
| JavaScript Version: | 1.0 |
JavaScript Math Object
Your message has been sent to W3Schools.