min
The Math.min() method returns the number with the lowest value.
Syntax
Math.min(a,b)
Returns
The lowest number of the arguments. -Infinity if no arguments are given. NaN if one of the arguments is not a number.
Parameters
- a (int/float)
- number to compare.
- b (int/float)
- number to compare.