Javascript Reference - JavaScript SQRT2 Property








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

Browser Support

SQRT2 Yes Yes Yes Yes Yes

Syntax

Math.SQRT2

Return Value

A Number representing the square root of 2.

Example

The following code shows how to find out the value of square root of 2.


console.log(Math.SQRT2);

The code above generates the following result.