The Math atanh() static method returns the inverse hyperbolic tangent of a number.

    
    console.log(Math.atanh(-1));
    // -Infinity

    console.log(Math.atanh(0));
    // 0

    console.log(Math.atanh(0.5));
    // 0.549306144334055

    console.log(Math.atanh(1));
    // Infinity