Secret ingredients to quality software


Do you know when to use TypeScript (vs JavaScript and CoffeeScript)?

Last updated by William Yin on 24 Aug 2015 02:02 am (over 5 years ago) See History

TypeScript is the new flagship language from Microsoft that compiles into JavasScript.

  • Use JavaScript if you’re writing page specific script
  • Use jQuery to improve cross-browser support
  • Use TypeScript if you’re writing re-usable client side library

Don't use CoffeeScript (language is too different from JavaSript)

typescript good
Figure: Good - TypeScript is very similar to JavaScript so it’s easy to learn, and also helps developers learn proper JavaScript coding practices

typescript bad
Figure: Bad – CoffeeScript syntax is very different from JavaScript so it takes longer to learn

Eric PhanEric Phan

We open source. This page is on GitHub