function radians_to_degrees(radians) { var pi = Math.PI; return radians * (180/pi); } console.log(radians_to_degrees(0.7853981633974483));