Math.max

Math.max(VALUE1,VALUE2)

This function compares the two numbers given and returns the larger one. If either of the arguments is not a number (for example: Math.max(100,'pizza')) it will return NaN (which is short for Not a Number).