29.
What is the purpose of the Math.max() function in JavaScript?
Returns the smallest number from a given set of numbers.
Returns the largest number from a given set of numbers.
Calculates the average of a given set of numbers.
Generates a random number between 0 and 1.
Correct: B
The Math.max() function is used to find the largest number among the given set of numbers. It accepts any number of arguments and returns the maximum value. For example, Math.max(2, 5, 1, 9) will return 9, as it is the largest number in the set.