What are types?
A type is a reusable set of rules. A type may include properties and functions (capabilities). It can also be shared and reused over and over again. When you reuse a type, you are creating an instance of it. This means that you are creating an example of your type that has specific values for properties. In TypeScript, as the name implies, types are very important. They're the main reason why the language was created in the first place. Let's take a look at how types work in TypeScript.
How do types work?