The Math.min(x,y) method can be used to find the lowest value of x and y:

Example

Math.min(5, 10);



Practice Excercise Practice now