The
Math.min() function returns the smallest of zero or more numbers.Or we can say that,it return the number with the smallest value.
Min is also an static method of Math,we always use it as Math.min().
Syntax:
Math.min(value1,value2,...,valueN);
Example:
var result1 = Math.min(15,25);
//Output:15
var result2 = Math.min(0,1,2,3);
//Output:0
var result3 = Math.min(1.1,2.2);
//Output:1.1