Math 객체의 hypot() 함수는 숫자를 받아들이고 주어진 숫자의 제곱합의 제곱근을 반환합니다.
구문
구문은 다음과 같습니다.
Math.hypot(12, 58, 66);
예시
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.hypot(12, 58, 66);
document.write("hypot value: "+result);
</script>
</body>
</html> 출력
hypot value: 88.67919710958147