If no arguments are given, the result is -Infinity.
If at least one of arguments cannot be converted to a number, the result is NaN.
Syntax
Math.max([value1,value2,value3,...]);
Example
Math.max(50, 10); // 50
Math.max(-1, -200); // -1
Math.max(-999, 2); // 2
Example Program:- (Editor)
Editor is Loading...
Advertisement
0 nhận xét:
Đăng nhận xét