21.
What are the two types of enums in TypeScript?
Numeric enums and string enums
Object enums and literal enums
Numeric enums and boolean enums
Static enums and dynamic enums
Correct: A
TypeScript supports two types of enums: numeric enums and string enums. Numeric enums assign numeric values to each member, starting from 0 by default. String enums assign string values to each member. Enums provide a way to associate names with values, making the code more readable and expressive.