The Math cos() static method returns the cosine of a number in radians.

    
    function getCircleX(radians, radius) {
      return Math.cos(radians) * radius;
    }

    console.log(getCircleX(1, 10));
    // 5.403023058681398

    console.log(getCircleX(2, 10));
    // -4.161468365471424