Easy Tutorial
❮ Prop Canvas Textbaseline Prop Email Size ❯

JavaScript SQRT2 Property

JavaScript Math Object

Example

Return the square root of 2:

Output result:


Definition and Usage

The SQRT2 property returns the square root of 2. This value is approximately 1.4142135623730951.


Browser Support

All major browsers support the SQRT2 property.


Syntax

Technical Details

Return Value: A number, returns the square root of 2.
JavaScript Version: 1.0
--- ---

JavaScript Math Object

❮ Prop Canvas Textbaseline Prop Email Size ❯