Enum (TypeScript)

An enum is a named set of related constants, defined with the `enum` keyword. It gives friendly names to a fixed group of values, such as directions or…