28.
Which of the following functions allows you to round a number to the nearest whole number in JavaScript?
Math.ceil()
Math.floor()
Math.round()
Math.random()
Correct: C
The Math.round() function is used to round a number to the nearest whole number. It follows the standard rounding rules, rounding up if the decimal part is 0.5 or greater, and rounding down if it is below 0.5.