xor with and code example
Example 1: XOR from only OR and AND
A B OR AND NAND [(A OR B) AND (A NAND B)]
T T T T F F
T F T F T T
F T T F T T
F F F F T F
Example 2: example use xor in
const findOdd = (xs) => xs.reduce((a, b) => a ^ b);
// this is arrow function