The Math.max() method is used to return the number with the highest value. Its opposite function is Math.min() which returns the minimum value among all values.