Can't figure out how to make it return a string when it's not a numbe please help


var isEven = function(number) {
// Your code goes here!
if(number % 2 === 0) {
return true;
} else if(isNaN("berry")) {
return false;
} else {
return false;


You have to check if the parameter number of the isEven function. So:

} else if(isNaN(number)){

Would do the trick. But you also have to define isEven, so:

isEven("_____" ) //write a string
isEven(____) //write a number

Both ways work :smiley: