37 lines
26 KiB
Markdown
37 lines
26 KiB
Markdown
---
|
|
title: "max"
|
|
excerpt: "Computes the maximum of the given arguments."
|
|
layout: manual
|
|
---
|
|
|
|
Computes the maximum of the given arguments.
|
|
|
|
|
|
|
|
```js
|
|
max(args: [number]) -> number
|
|
```
|
|
|
|
### Tags
|
|
|
|
* `math`
|
|
|
|
### Examples
|
|
|
|
```js
|
|
const myVar = max(4, 5, 6)
|
|
```
|
|
|
|

|
|
|
|
### Arguments
|
|
|
|
* `args`: `[number]` (REQUIRED)
|
|
|
|
### Returns
|
|
|
|
`number`
|
|
|
|
|
|
|