Chapter 2
TypeScript Language Features
![Content Locked](https://d2eqvbo50s3340.cloudfront.net/f4bdc4a0cdb8470db055e1333f3ee0d1/images/f809d079111e31b1f0b7716cb973d607.jpg)
Section 5
Union and Literal Types
These two types are very unique and work in its own way. Union gives one variable to hold or contain more than one datatype based on the developer’s choice, while the literal type is somehow like enumerations, but in a different way, as we shall see. - Study how to create a union type variable and assign different typed values to this variable, based on our declaration of this variable - Explore how literal types work and we can only specify certain elements, that can be set to the variable