Skip to main content Accessibility Feedback

Numbers

Math.min()

Returns the lowest number from a set of numbers. Pass each number in as an argument.

// returns 3.14
Math.min(42, 3.14, 27);

// returns -42
Math.min(-42, -3.14, -27);

Preorder my new course on Web Components! Want to learn how to build Web Components from scratch, master best practices, and more? Preorder today and get $100 off of the launch price.


Find this useful? You can support my work by purchasing an annual membership.