Javascript - Math SQRT2 Property

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

Description

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

Syntax

Math.SQRT2

Return

A Number, representing the square root of 2

Example

Return the square root of 2:

Demo

//display the square root of 2.
console.log(Math.SQRT2);

Result