1. If/else help!


I'm having a hard time figuring the first part out. My code is:

var isEven = function(number) {
} else {
return ("False");

I'm getting an error message that doesn't make much sense to me:

Oops, try again. Looks like your function returns false when number = 3. Check whether your code inside the if/else statement correctly returns true if the number it receives is odd.

I'm not sure why I am getting this error message! The problem asks us to return True if the number is even aka number%2===0 right? And if there is a remainder or if number%2==/=0 then it is odd and it should return false? Am I missing something?

Thank you for you help!!!


The problem is that you need to use true and false not "True" and "False". The first are boolean values and the latter are strings.