What does the `enum` keyword do in TypeScript?

TypeScript Associate Easy

TypeScript Associate — Easy

What does the `enum` keyword do in TypeScript?

Key points

  • Enums help improve code readability by giving meaningful names to values
  • They are not used to create arrays of values
  • Enums do not declare function types or define abstract classes

Ready to go further?

Related questions