

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Learn TypeScript
incomplete
2: Basic Types
incomplete
3: Type Inference
incomplete
4: Why TypeScript
incomplete
5: What Is TypeScript
incomplete
6: Any
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
TypeScript is a superset of JavaScript, meaning that:
But who tf cares? The real question is, why should I use TypeScript instead of JavaScript? Well, TypeScript is fantastic because it:
In short, it adds static typing to JavaScript.
Static vs dynamic typing isn't exactly a settled debate in the programming community, but for me personally, I'll take static over dynamic types any day of the week. I like to hover over variables and see their types, and I like to know that my code doesn't have an entire class of potential bugs before I even run it.
TypeScript was developed internally at Microsoft by C# developers (led by Anders Hejlsberg) who wanted static typing in their JavaScript (C# being a statically typed language). It was released to the public in 2012, and while its execution speed isn't necessarily blazingly fast, its meteoric rise in popularity is.
Click to play video
In the video we briefly mention a "linter". A linter is a tool that automatically analyzes your code and warns you about potential errors, style issues, or bad patterns before you run it.