TypeScript is a strict superset of JavaScript. That means all JavaScript code is valid TypeScript code.

In other words, TypeScript inherits all of JavaScript’s baggage. However, if you are highly disciplined and you adhere only to TypeScript’s features, then it can be a very good language.

The problem is, in practice, JavaScript coding will eventually bleed into your TypeScript coding. It’s unavoidable. TypeScript’s strength is that it plays well with JavaScript, integrating very tightly.

If you use another transpiled language (like PharoJS, for example), you can pretty much avoid all of JavaScript’s nastiness.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store