maxintermediate// Largest of the given numbers
Math.max(1, 5, 3) // β 5
Math.max(-1, -5) // β -1Use Math.max() to find the largest value among a set of numbers, or to clamp a minimum bound.
Returns the largest of the given numbers.
Challenge: Observe that Math.max(1, NaN) returns NaN.