In short
A setting that switches a behavior on or off without shipping new code.
A feature flag is a stored switch the code reads at run time. Teams use flags to release a change to a few people first, to turn off something that breaks, or to choose how a process runs.

