JavaScript » Bitwise » ^

This is the bitwise XOR operator, which returns a one for each position where one (not both) of the corresponding bits of its operands is a one.

Examples

Code:
result = a ^ b;
Explanation:

The next example returns 4 (0100)