angular js check number in text box even or odd code example Example: javascript even number let isEven = (n) => !(n&1);