JavaScript Math.min() Explained with an Example

Math Min

The Math.min() function returns the smallest of zero or more numbers.

You can pass it any number of arguments.

Math.min(7, 2, 9, -6);
// returns -6
4 Likes