var isEven = function(number) {
// Your code goes here!
if (isEven = true) {
return “Pie”
}
else{
return “Your mom”
}
};
Why does this work? #1
zane_a96
#1
stetim94
#2
there are two problems in your if condition, isEven
is the functionname, you should compare with the parameter (number
), speaking of which comparing is two with two equal signs, one is assigning a value to a variable