Any doubt you may have had about TypeScript should have melted away with the recent announcement of Angular 2 being written in TypeScript. Google and Microsoft putting aside their egos (and money) to build an open source project together certainly indicates something amazing about AngularJS and TypeScript. I don’t need to tell you how awesome AngularJS is, so in this post I’d like to show you how awesome TypeScript is.
JavaScript says, “let” there be block-scope!
Variable in JavaScript has always been a leaky concept. We all know global variables are evil, but “hoisted” variables within a certain scope can lead to unexpected bugs that are hard to track down. Introducing the new “let” keyword!
JavaScript classes with ECMAScript 6
JavaScript has been officially initiated as an object-oriented language with the introduction of classes in ECMAScript 6. Now that classes are baked into JavaScript, it changes the whole playing field!