JavaScript Math hypot() methodThe 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. Test it NowOutput: 5 13 Example 2Let's see an example of hypot() method with three arguments. Test it NowOutput: 5.385164807134504 9.643650760992955 Next TopicJavaScript Math |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India