Skip to main content Accessibility Feedback



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

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

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

Join the Lean Web Club! Coaching. Courses. Coding resources. Get the skills, confidence, and support you need to learn front-end web development and achieve long-term success.

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