Bitwise Operators Playground

Mrs. Tini’s stock crates, one crate per bit: & | ^ ~ << >> >>> on your own numbers, the 32 bits the engine really holds, the sign bit, and BigInt beside them…

Why it matters

Rarely for maths, but bit flags are everywhere: permissions (READ | WRITE), features, event masks, colours. And the traps are real: bitwise cuts to 32 signed bits, ~~x is no rounding, and a & b === b does not mean what you think.

The key idea

Bitwise works on 32 signed bits, crate by crate

Common mistakes

Try it in this playground