Introduction
AND is used to keep certain bits of a number while turning others off. This helps us focus on specific parts of data.
You want to check if a specific light is on in a group of lights.
You need to get only the last 4 bits of a number to read a small value.
You want to clear some bits but keep others unchanged.
You want to test if a particular feature flag is active in a settings byte.