1 % 2 ==1 javascript even code example Example: if odd js function isEven(value) { return !(value % 2) }