hipotenusa retangular triângulo javascript

Math.hypot(ab, ac) 
ZeldaIsANerd