bitXor

Performs a bitwise logical XOR operation.

bitXor(number1, number2) → returns numeric

Argument Reference

number1 numeric
Required

Integer

number2 numeric
Required

Integer

Examples
Sample code invoking the bitXor function

Uses the bitXor function to perform the logical XOR operation on each pair of the corresponding bits

bitXor(5,3)

Expected Result: 6


Fork me on GitHub