How to clamp numbers in JavaScript using math.clamp()?

How to clamp numbers in JavaScript using math.clamp()?

More to explore

Based on this image's title: “How to clamp numbers in JavaScript using math.clamp()?