TypeScript is a superset of JavaScript. It does everything that JavaScript does, but with some added features. The main reason for using TypeScript is to add static typing to JavaScript. This means that the type of a variable cannot be changed at any point in a program. It can prevent a LOT of bugs!
Table of contents
What is TypeScript?Is TypeScript worth it?How to Set Up a TypeScript ProjectTypes in TypeScriptClasses in TypeScriptModules in TypeScriptInterfaces in TypeScriptLiteral types in TypeScriptGenericsEnums in TypeScriptTypeScript strict modeNarrowing in TypeScriptBonus: TypeScript with ReactUseful resources & further readingThanks for reading!18 Comments
Sort: