• @axEl7fB5@lemmy.cafe
    link
    fedilink
    English
    3
    edit-2
    1 month ago
    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 ===