299 B
299 B
title, tags
| title | tags |
|---|---|
| radsToDegrees | math,beginner |
Converts an angle from radians to degrees.
- Use
Math.PIand the radian to degree formula to convert the angle from radians to degrees.
const radsToDegrees = rad => (rad * 180.0) / Math.PI;
radsToDegrees(Math.PI / 2); // 90