bitOr

Performs a bitwise logical OR operation.

bitOr(number1, number2) → returns Numeric

Argument Reference for the bitOr function

number1

Required: Yes
Integer

number2

Required: Yes
Integer

Examples sample code invoking the bitOr function


Calculate bitwise logical OR

Uses the bitOr function to perform the logical OR operation on each pair of the corresponding bits

bitOr(5,3)

Expected Result: 7


Fork me on GitHub