Math.min( x, y )
The smaller number of the two values entered in x and y.
x – the number or a variable containing a number. This parameter is required.
y – the number or a variable containing a number. This parameter is required.
Examples