Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
30 lines (18 loc) · 501 Bytes

File metadata and controls

30 lines (18 loc) · 501 Bytes
Copy raw file
Download raw file
Outline
Edit and raw actions

max

The maximum of two values.

Math.max(8, 2);

You find the larger of two numbers with the max function.

Parameters

a: The first number to check to see if it is more than the second number. b: The second number to check to see if it is more than a first number.

Returns

  • the larger of the two numbers in a or b.

Example

Find out which value is more: 7 or 16.

let minival = Math.max(7, 16);

See also

min

Morty Proxy This is a proxified and sanitized view of the page, visit original site.