Could someone explain to me why this keeps on returning false?

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

Thanks

Could someone explain to me why this keeps on returning false?

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

Thanks

Two problems:

- You are supposed to take the remainder (
`%`

) and not the quotient(`/`

). - Check your dividend on this line:
`if(isEven / 2 === 0)`

.

Because you were dividing a function by `2`

, you were getting `NaN`

which did not equal `0`

. Hence, it was always `return`

ing `false`

.