Enums
Learn how to use TypeScript enums to define named value sets for variables or function parameters.
We'll cover the following
Introduction to enums
Enums are a special type whose concept is similar to other languages, such as C#, C++, or Java, and provides the solution to the problem of special numbers or special strings.
Enums are used to define a human-readable name for a specific number or string.
Consider the following code:
Get hands-on with 1400+ tech skills courses.