Control flow isEven error


#1


I am stuck here
var isEven = function(number) {
// Your code goes here!

if ( number % 2 === 0) {
return true;
}
else (number %2 !=== 0){
return false;
}
}
Error comes as:-----
Oops, try again. There was a problem with your syntax.


Replace this line with your code.


#2

HI the else statement doesn't take any condition

if (condition) {
    #do something
}
else {
   #do something
}

#3

After else dont put that condition


#4

ops just picked that up... thanks so much