JavaScript Math.SQRT2

Example

let x = Math.SQRT2;
Try it Yourself »

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
NumberThe square root of 2.


Browser Support

Math.SQRT2 is an ECMAScript1 (ES1) feature.

ES1 (JavaScript 1997) is fully supported in all browsers:

Chrome Edge Firefox Safari Opera IE
Yes Yes Yes Yes Yes Yes

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.