「ES6入門」Math.hypot()の使い方
サンプルコード
Math.hypot(3,4); //5
Math.hypot(1,2,3); //3.741657386773941
Math.hypot(-5); //5
Math.hypot(); //0
Math.hypot(NaN); //NaN
Math.hypot("a"); //NaN
Math.hypot(3,'4'); //5
Math.hypot(3,'a'); //NaN
Coding Changes the World
サンプルコード
Math.hypot(3,4); //5
Math.hypot(1,2,3); //3.741657386773941
Math.hypot(-5); //5
Math.hypot(); //0
Math.hypot(NaN); //NaN
Math.hypot("a"); //NaN
Math.hypot(3,'4'); //5
Math.hypot(3,'a'); //NaN