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
|
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week