Let's start writing some TypeScript!
In the following sections, we will take a look at different snippets showing some of the features of TypeScript. In order to be able to run the snippets and play with them yourself, you'll need to install the TypeScript compiler on your computer. Let's take a look at how to do this.
The easiest way to install TypeScript is using Node package manager (npm). I'd recommend that you use version 5.0.0 or a newer version of npm. If you don't have node.js and npm installed already, you can visit https://nodejs.org and follow the instructions there.