[Chapter 21] Reference: Math.max()
Author: David Flanagan
Date: Fri Aug 29 11:17:51 1997

#

| Chapter 21 JavaScript Reference |

# Math.max() Function

## Name

Math.max() Function---return the larger of two values

## Availability

Navigator 2.0, Internet Explorer 3.0

## Synopsis

    Math.max(a, b)

### Arguments

`a`, `b`

  Any two numeric values or expressions.

### Returns

The larger of the two values `a` and `b`.

## Description

`Math.max()` returns whichever of its two arguments is larger.

## See Also

"Math", "Math.min()"

Math.LOG2E |  | Math.min()