Why does this work? #1


var isEven = function(number) {
// Your code goes here!
if (isEven = true) {
return “Pie”
return “Your mom”


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


Thank you for explaining this to me