TypeScript for Beginners: Getting Started

TypeScript for Beginners: Getting Started

Let's start this tutorial with the question: "What is TypeScript?" 

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. As an analogy, if JavaScript were CSS then TypeScript would be SCSS. 

[…]

If you have never used TypeScript before, you might be wondering why you should bother about learning it at all when it compiles to JavaScript in the end. 

Let me assure you that you won't have to spend a lot of time in learning TypeScript. Both TypeScript and JavaScript have very similar syntax, and you can just rename your .js files to .ts and start writing TypeScript code. Here are a few features that should convince you to start learning TypeScript:

[…]