Math.hypot()

Term side of the Card
Topic: Math
Unit title: Math.hypot()
Categories: Method
Explanation side of the Card

Explanation: The static method that returns the square root of the sum of squares of its arguments. It's useful for calculating the Euclidean distance, for example, `Math.hypot(3, 4)` returns 5, which is the length of the hypotenuse in a right triangle.

Browser compatibility:
  • The chrome browser supports this feature starting from version 38
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 27
  • The safari browser supports this feature starting from version 8
Availability: