Bitwise
Operator | Compatible types | Description |
& | Integer | Performs a bitwise 'and' operation and returns the result: ** ** var x = 4 & 2; |
** | ** | Integer |
^ | Integer | Performs a bitwise 'xor' operation and returns the result:var x = 4 ^ 1; |
**< | Integer | Shifts the lhs value by rhs bits to the left, and returns the result: ** ** var x = 9 << 2; |
>> | Integer | Shifts the lhs value by rhs bits to the right, and returns the result: ** ** var x = 8 >> 3; |