13.
What will be the output of the following code?
function isEven(number) {
return number % 2 === 0;
}
console.log(isEven(5));
1
0
false
true
Correct: C
The code checks if the given number is even by calculating the remainder of the number divided by 2. For odd numbers, the remainder will be 1, so the output will be false.