example use xor in

JavaScript
const findOdd = (xs) => xs.reduce((a, b) => a ^ b);
// this is arrow function

Source

Also in JavaScript: