Get the largest number from a set of numbers Math.max() 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); Source https://vanillajstoolkit.com/reference/numbers/math-max/