Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
math.hypot(x, y) (in Python) returns sqrt(x²+y²), which is the hypotenuse (longest side of a triangle) of a square angled triangle. x and y are expected to be the 2 shorter sides of a triangle. Math.hypot should work same in ES6 like math.hypot works in Python.
27th Jan 2019, 12:59 PM
Seb TheS
Seb TheS - avatar