DekGenius.com
Team LiB   Previous Section   Next Section
Math.max( ) return the largest argument

Availability

JavaScript 1.0; JScript 1.0; ECMAScript v1; enhanced in ECMAScript v3

Synopsis

Math.max(args...)

Arguments

args...

Zero or more values. Prior to ECMAScript v3, this method expects exactly two arguments.

Returns

The largest of the arguments. Returns -Infinity if there are no arguments. Returns NaN if any of the arguments is NaN or is a non-numeric value that cannot be converted to a number.

    Team LiB   Previous Section   Next Section