From http://www.w3schools.com (Copyright Refsnes Data)

JavaScript SQRT2 Property


Math Object Reference JavaScript Math Object

Definition and Usage

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

Syntax

Math.SQRT2


Example

Example

Return the square root of 2:

<script type="text/javascript">

document.write("SQRT2: " + Math.SQRT2);

</script>

The output of the code above will be:

SQRT2: 1.4142135623730951

Try it yourself »


Math Object Reference JavaScript Math Object

From http://www.w3schools.com (Copyright Refsnes Data)