hypotenuse rectangle triangle javascript code example Example: hypotenuse rectangle triangle javascript Math.hypot(ab, ac)