How are JavaScript and TypeScript related?
Hey 👋🏻 !
I'm Kevin, a full-stack developer running a digital prototyping company with my business partner called Spin Up.
When I'm not consulting and building for clients, I'm writing content here, curating my newsletter or creating videos.
Outside of work, I enjoy handing out with my wife and sons - camping, hiking and kayaking or just curling up with a good book.
TypeScript is a typed superset of JavaScript and, when compiled (or transpiled), emits pure JavaScript.
What's that mean?
- If there are no syntatic errors in your JS, it is valid TS
- Migrating existing codebases can be done piece by piece
- All JavaScript is TypeScript but not all TypeScript is JavaScript
All this means that you can (like I am) gradually learn TS and gradually add it to more of your projects. The typing will hopefully catch errors sooner - at compile time rather than run time - but it won't necessarily catch every problem.





