// After `n = max` the name n no longer means what the caller passed.const clamp = (n: number, max: number): number => { if (n > max) { n = max; } return n;};console.log(clamp(12, 10));// After `n = max` the name n no longer means what the caller passed.const clamp = (n: number, max: number): number => { if (n > max) { n = max; } return n;};console.log(clamp(12, 10));