you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 1 year ago* (last edited 1 year ago) (1 child)
function isEven(number) {
  return number % 2 === 0;
}

Dunno about making it "concise" but you can shorten the name of the function and the parameter and maybe use == instead of ===

  • source
  • parent
  • hideshow 1 child comment