⭕bitwise operator
Last updated
Last updated
JS ⟩ statement ⟩ expression ⟩ operator ⟩ arithmetic ⟩ bitwise
bitwise and (&), or (|), xor (^), not (~)
shift left (<<), right (>>), right with 0 fill (>>>)
these operators convert their operand to 32-bit integers
bitwise operators
bitwise and (&) / or (|) / xor (^) / bitwise not (~)
shift left (<<) / right (>>) / right with 0 fill (>>>)
related topics
2's complement (-x = ~x + 1
)
double tilde (~~) - nearest integer towards 0.
tools
bitview() - 32-bit representation of signed integers.