Summary
Now that you've reviewed this module, you should be able to:
- Explain the advantages of declaring typed variables in TypeScript.
- Declare variables using primitive types.
- Declare variables using object types.
- Declare variables using union and intersection types.
Resources
Use these resources to discover more.
- Go to TypeScript Handbook: Basic Types to learn more about the primitive types and the array type.
- Go to TypeScript Handbook: Enums to learn more about enumeration types.
- Go to TypeScript Handbook Reference: Advanced Types to learn more about type guards.
- Go to TypeScript Handbook: Literal Types to learn more about literal types.
- Go to TypeScript Handbook: Unions and Intersection Types to learn more about these advanced types.