$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #87

Complete the function

// returns true if n is even
function isEven(n) {
  return n ____ 2 === 0;
}

Answer: % (also accepted: %)

The modulo operator gives the remainder, which is 0 for even numbers.
Play Problem Solving ▸