More on control flow on js..lesson to solve?


Replace this line with your code.


What are you confused about?

Explain what is causing you trouble. :slight_smile:


var isEven = function(number) {
// Your code goes here!
if(number ){
return "true";

return "false";
it doesn't work!


your condition is wrong

if (/* Some condition */) {
    // Do something
} else if (/* Some other condition */) {
    // Do something else
} else {    // Otherwise
    // Do a third thing

what do you mean by "if(number)"
do you know "if(number)" means "if(number==true)"
But you have to do something else.
It should return true; if the number it receives is evenly divisible by 2
see the Instructions carefully :slight_smile: