Course · Section 12: Numbers, Dates, Intl and Timers · Lecture 182: Math and Rounding
Implement `roundModes(n)` returning `[floor, ceil, truncated]` for `n`.
+ 1 hidden test run on Submit.
floor rounds down, ceil rounds up, and trunc cuts toward zero, which diverge for negatives.
Run your code to see results.