For some reason, I seem to be hitting a roadblock with this basic function. It's telling me there's a reference error because apparently "isEven" is undefined:
var isEven = function(number) {
if (number % 2 == 0) {
return true;
}
else {
return false;
};
};
I can't seem to figure out what I'm missing or doing incorrectly. Any insights?