JavaScript SQRT2 property

Definition and usage

SQRT2 The property returns the square root of 2, approximately 1.414.

Example

Returns the square root of 2:

Math.SQRT2;

Try it yourself

Syntax

Math.SQRT2

Technical details

Return value: A number representing the square root of 2.
JavaScript version: ECMAScript 1

Browser Support

Math.SQRT2 Is an ES1 feature (JavaScript 1999). All browsers fully support it:

Chrome IE Edge Firefox Safari Opera
Support Support Support Support Support Support

Related Pages

Tutorial:JavaScript Math