max ( object compare1 , object compare2 , object ... ) : mixed
Retuns the maximum value comparing some variables.
Example
console( max(5,12) ) //->12
list = [4,13]
console( max(list) ) //->13, you can use an array
Parameters
compare1
This parameter can be an array (but it must be the only parameter)