SQRT2
Math
class propertyS2C Home
« Globals « Math « SQRT2
Description
Returns the square root of 2.
- Like all class properties
SQRT2
should be used on the class rather than an instance of the class.
Syntax
Signature | Description |
---|---|
Math.SQRT2 | Returns the square root 2. |
Parameters
None.
Examples
The code below displays SQRT2
usage.
alert('square root of 2: ' + Math.SQRT2) // 1.414213...
Related Tutorials
JavaScript Advanced Tutorials - Lesson 4 - Math