A hands-on introduction to bit manipulation and bitwise operators in JavaScript, using the implementation of a BitSet class as a teaching vehicle. Covers bit masks, bitwise AND/OR/NOT/shift operators, and how to build add, remove, and has methods for a BitSet backed by an array of 32-bit integers. Explains how to map an

11m read timeFrom alexharri.com
Post cover image
Table of contents
Bit masksImplementing a bit setNext up: Iteration

Sort: