← Back to challenges

Radians to Degrees

JavaScriptHardmathlogicnumbers

Instructions

Create a function that takes an angle in radians and returns the corresponding angle in degrees.

Examples

radiansToDegrees(1) ➞ 57.29577951308232

radiansToDegrees(20) ➞ 1145.9155902616465

radiansToDegrees(50) ➞ 2864.7889756541163

Notes

N/A

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Testing K^K == N?