check if a number is odd or even in js code example Example: if odd js function isEven(value) { return !(value % 2) }