$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #284

What goes in the blank?

// clamp n into the range [lo, hi]
const c = Math.min(hi, Math.____(lo, n));

Answer: max (also accepted: max, Math.max)

The inner max lifts n up to lo, then the outer min caps it at hi.
Play Problem Solving ▸