Help...?


#1

var isEven = function(number) {
if(number % 2 === isEven){
return true
} else {
return false
}

};


#2

this line:

if(number % 2 === isEven)

if the remainder equals the function? Why not check if the remainder equals zero (the remainder for equal numbers is zero)


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.