JavaScript SQRT2 property

Definition and usage

SQRT2 Properties return the square root of 2, approximately 1.414.

Example

Returns the square root of 2:

Math.SQRT2;

Try it yourself

Syntax

Math.SQRT2

Technical details

Return value: Number representing the square root of 2.
JavaScript version: ECMAScript 1

Browserv understøttelse

Math.SQRT2 Er ES1 egenskab (JavaScript 1999). Alle browsere understøtter det fuldt ud:

Chrome IE Edge Firefox Safari Opera
Support Support Support Support Support Support

Relaterede sider

Vejledning:JavaScript matematik