JavaScript Math hypot() methodLast Updated : 17 Mar 2025 The JavaScript math hypot() method returns the square root of sum of the squares of given numbers. It returns NaN, if any argument cannot be converted to a number. SyntaxThe hypot() method is represented by the following syntax: ParameterNum - A number. ReturnThe square root of sum of the squares of given numbers. JavaScript Math hypot() method exampleHere, we will understand hypot() method through various examples. Example 1Let's see a simple example of hypot() method. Output: 5 13 Example 2Let's see an example of hypot() method with three arguments. Output: 5.385164807134504 9.643650760992955 Next TopicJavaScript Math |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India