Es6-math-property-sqrt2

提供:Dev Guides
移動先:案内検索

ES6-Math-SQRT2プロパティ

2の平方根、約1.414。

構文

Math.SQRT2

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

出力

1.4142135623730951