ES6 - Math-SQRT2 Property



Square root of 2, approximately 1.414.

Syntax

Math.SQRT2 

Example

console.log(Math.SQRT2)  // the square root of 2: ~1.414             

Output

1.4142135623730951             
Advertisements