Enum
Last updated
What is Enum?
An "enum" (short for enumeration) is a way to define a set of named constants. It provides a way to give more friendly names to sets of numeric values, making code more readable and maintainable. Enums allow you to define a type by enumerating its possible values, which can represent options, states, or any other set of distinct possibilities.
Free resources to learn Enum
- Official docsTypeScript - Enums
More in stage 4: Type Compatibility
Enum: common questions
Can I learn Enum in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Enum in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Enum tutorial for beginners?
It is lesson 19 of 93 in the free TypeScript roadmap, in stage 4, Type Compatibility. If you are new to TypeScript, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.