bitXor

Performs a bitwise logical XOR operation.

bitXor(number1, number2) → returns Numeric

Argument Reference for the bitXor function

number1

Required: Yes
Integer

number2

Required: Yes
Integer

Examples sample code invoking the bitXor function


Calculate bitwise logical XOR

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