Where am i getting wrong over here


#1

var isEven = function(number) {
if(number){
return("True"+ number);
}
else{
return("false");
}

};


#2

@abhi082391,

1

The return-statement does not use parenthesis-( )

2

You have to either return the Boolean Value true or false
and not as you are using a string Value "True" or "false"

3

In your IF-condition you should be using the comparison

 number%2 === 0