Bitwise XOR 2 values together and return the answer
The result of bitwise XOR operator is 1 if the corresponding bits of two operands are opposite. It is denoted by ^.
The exclusive-or operation takes two inputs and returns a 1 if either one or the other of the inputs is a 1, but not if both are. That is, if both inputs are 1 or both inputs are 0, it returns 0. Bitwise exclusive-or, with the operator of a caret, ^, performs the exclusive-or operation on each pair of bits. Exclusive-or is commonly abbreviated XOR.
Here's an example with the binary values written out: