Learn TypeScript
JavaScript with a static type system that catches bugs before they run
TypeScript is a typed superset of JavaScript: it adds type annotations, interfaces, generics and a powerful type checker, then compiles to plain JavaScript that runs anywhere. It is the default choice for large front-end and Node.js codebases because it catches mistakes early, powers editor autocomplete and refactoring, and documents APIs in the code itself.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know