Should I learn ES5, ES6 or TypeScript
A question that keeps getting asked all over the interwebs nowadays, especially given Angular2 meteoric rise in popularity:
Before I answer I hope you are familiar with this relation:
Based on this superset:
- So if you know TypeScript you really know (mostly) all three.
- Typescript helps your learning curve
I’d like to point out all the times I’ve seen TypeScript help developers learn ES5 and ES6.
The classic WAT cases are all TypeScript errors:
A lot less things you need to teach new devs as the bad parts are now TypeScript errors.
Many others examples from that presentation would be a compile time lint errors in TypeScript.
PS: If you like this, don’t forget to click the heart below 🌹