bitwise operator

JSstatementexpressionoperatorarithmetic ⟩ bitwise

  • bitwise and (&), or (|), xor (^), not (~)

  • shift left (<<), right (>>), right with 0 fill (>>>)

~x    // invert bits (convert to number, = -x - 1)

these operators convert their operand to 32-bit integers

🌟 table of operators

  • bitwise operators

    • bitwise and (&) / or (|) / xor (^) / bitwise not (~)

    • shift left (<<) / right (>>) / right with 0 fill (>>>)

  • related topics

  • tools

    • 💾 bitview() - 32-bit representation of signed integers.

Last updated