Skip to main content

Command Palette

Search for a command to run...

How are JavaScript and TypeScript related?

Published
1 min read
K

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.

More from this blog

@

@dolearning (Kevin Cunningham)

29 posts