ES6 - Math-SQRT1_2 Property



Square root of 1/2; equivalently, 1 over the square root of 2, approximately 0.707.

Syntax

Math.SQRT1_2 

Example

console.log(Math.SQRT1_2)  // the square root of 1/2: ~0.707           

Output

0.7071067811865476            
Advertisements