max Method

Returns the greater of zero or more supplied numeric expressions.

Math.max([number1[, number2[. . . [, numberN]]]]) 

The optional number1, number2, . . ., numberN arguments are numeric expressions to be evaluated.


If no arguments are provided, the return value is equal to NEGATIVE_INFINITY. If any argument is NaN, the return value is also NaN.


Version 1

See Also

Math Object Methods | min Method| NEGATIVE_INFINITY Property

Applies To: Math Object