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 ===
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 ===