Returns the larger of a set of supplied numeric expressions.
SyntaxMath.max([ number1 [, number2 [... [, numberN ]]]])
Examples
The following code shows how to get the larger of two expressions.
var x = Math.max(107 - 3, 48 * 90);
document.write(x);
Remarks
The optional number1, number2, …, numberN arguments are numeric expressions to be evaluated.
If no arguments are provided, the return value is equal to Number.NEGATIVE_INFINITY. If any argument is NaN , the return value is also NaN.
See also Other articles AttributionsMicrosoft Developer Network: Windows Internet Explorer JavaScript reference Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4