Why does this work? #1


#1

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


#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


#3

Thank you for explaining this to me