The Math hypot() static method returns the square root of the sum of squares of its arguments.

    
    console.log(Math.hypot(3, 4));
    // 5

    console.log(Math.hypot(5, 12));
    // 13

    console.log(Math.hypot(3, 4, 5));
    // 7.0710678118654755

    console.log(Math.hypot(-5));
    // 5