Explore Library
FlashcardBeginner

Enums vs Union of Literal Types

Union literals are lightweight types; enums produce runtime objects.

Question

What's a key difference between enums and unions of literal types?

Click to reveal answer