modulo for returning even numbers react code example Example: if odd js function isEven(value) { return !(value % 2) }