Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

Bitmask

Also written: bitmasks, bit mask

A single number whose bits stand for on/off options, such as grind, gift wrap and express shipping on one order. Each option gets its own power of two so they don't share a bit.

Where the book teaches it

Related terms

FlagBit operatorsPower of two