The Math asin() static method returns the inverse sine (in radians) of a number.

    
    // Calculates angle of a right-angle triangle in radians
    function calcAngle(opposite, hypotenuse) {
      return Math.asin(opposite / hypotenuse);
    }

    const angle = calcAngle(6, 10);

    console.log(angle);
    // 0.6435011087932844