Latest

recent

JavaScript SQRT2 Property

Definition and Usage

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

Syntax

Math.SQRT2


Example

<script type="text/javascript">
document.write("SQRT2: " + Math.SQRT2);
</script>

The output of the code above will be:

SQRT2: 1.4142135623730951
JavaScript SQRT2 Property Reviewed by 1000sourcecodes on 03:01 Rating: 5
Powered by Blogger.