how to check last number must be even or odd in javascript code example Example: if odd js function isEven(value) { return !(value % 2) }