I need to construct an IF statement that checks if the value of x is divisible by 2.
Select the best answer to complete the IF statement with the desired outcome.
if (_____________) {
(x + ' is divisible by 2.');
} else {
(x + ' is NOT divisible by 2.');
}
a) x % 2 === 1
b) x % 2 === 0
c) x / 2 === 1
d) x / 2 === 0