Determine if N is Even
First, a number X is even if X mod 2 is 0.

I think is more understandable something like this:

function isEven(n){
  return (n % 2 == 0);
}


The function will return true if the number n is even and false if it's odd.