Math.min

min — Returns the number with the lowest value.

Description

Math.min([number number, [number numbers, …]])

Parameters

Name Description Type Default Optional
number number Yes
numbers, … number Yes

Examples

Example #1 – min example
console.log(Math.min(11, 8)); // 8 console.log(Math.min(-2, 3)); // -2 console.log(Math.min(-3, -7)); // -7

See also

External references