The Math cosh() static method returns the hyperbolic cosine of a number.

    
    console.log(Math.cosh(0));
    // 1

    console.log(Math.cosh(1));
    // 1.543080634815244

    console.log(Math.cosh(-1));
    // 1.543080634815244

    console.log(Math.cosh(2));
    // 3.7621956910836314