9.
Which of the following is true about the Math.round() function in JavaScript?
The Math.round() function rounds a number to the nearest odd integer.
The Math.round() function rounds a number to the nearest even integer.
The Math.round() function rounds a number to the nearest integer.
The Math.round() function rounds a number to the closest multiple of 10.
Correct: C
The ``Math.round()` function in JavaScript rounds a number to the nearest integer.
console.log(Math.round(2.5)); // Output: 3
console.log(Math.round(2.49)); // Output: 2