If/else


#1

have same message even my code is. Any idea why im stuck?
var isEven = function(number) {
if(number % 2 === 0) {
return "true";
} else {
return "false";
}
};
isEven(7);


Need help in simple if/else? stuck with using function,
#2

you return strings, you should return boolean values


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.