How Typescript Enums Work

How Typescript Enums Work

Enums, short for Enumerations, are preset constants that can be defined by a developer for use elsewhere in the code.

For Javascript developers, the concept of enums is usually new, but they are relatively straightforward to understand. Enums add context to what we're writing.