Bitwise operators

Operators

Bitwise operators

Bit operators work on 32 bits numbers.

Any numeric operand in the operation is converted into a 32 bit number. The result is converted back to a JavaScript number.

& AND

CODE


| OR

CODE


~ NOT

CODE


^ XOR

CODE


<< Zero fill left shift

CODE


>> Signed right shift

CODE


>>> Zero fill right shift

CODE