Home
Do you know when to use TypeScript (vs JavaScript and CoffeeScript)?
  v4.0 Posted at 24/08/2015 12:02 PM by William Yin

​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)

Figure: Good - TypeScript is very similar to JavaScript so it’s easy to learn, and also helps developers learn proper JavaScript coding practices
Figure: Bad – CoffeeScript syntax is very different from JavaScript so it takes longer to learn

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:

    Comments: