Course · Section 12: Numbers, Dates, Intl and Timers · Lecture 182: Math and Rounding
Implement `clampNum(n, lo, hi)` returning `n` limited to the range `[lo, hi]`.
+ 1 hidden test run on Submit.
Math.min(Math.max(n, lo), hi) keeps n within the inclusive range.
Run your code to see results.