Return the number with the lowest value:
The result will be:
More "Try it Yourself" examples below.
The min() method returns the number with the lowest value.
Method | |||||
---|---|---|---|---|---|
min() | Yes | Yes | Yes | Yes | Yes |
Parameter | Description |
---|---|
n1,n2,n3,...,nX | Optional. One or more numbers to compare |
Return Value: | A Number, representing the lowest number of the arguments, or -Infinity if no arguments are given, or NaN if one or more arguments are not numbers |
---|---|
JavaScript Version: | 1.0 |
Return the number with the lowest value:
The result of a,b,c,d, and e will be: