Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

Flag

Also written: flags

One on/off option stored as a single bit in a bitmask. GRIND, GIFT_WRAP and EXPRESS are flags worth 1, 2 and 4.

Where the book teaches it

Related terms

BitmaskPower of two