TypeScript Is Microsoft’s Attempt At Making JavaScript Application Development Easier

    October 2, 2012
    Zach Walton
    Comments are off for this post.

JavaScript has been one of the core foundations of HTML5 since the beginning. Microsoft has been aggressively pushing HTML5 in Internet Explorer 10. So what happens when you take Microsoft’s desire to create proprietary programming languages and their insistence on HTML5? You get TypeScript, the company’s own version of JavaScript.

Microsoft announced that TypeScript is now available for developers and programmers to play around with. What’s the difference between TypeScript and JavaScript? Surprisingly, not a lot. Microsoft says that they created TypeScript as a way to help JavaScript scale to larger, more media rich HTML5 projects.

Some may be concerned that Microsoft is trying to replace JavaScript with TypeScript. That couldn’t be further from the truth. TypeScript is just an extension of JavaScript, and both languages can co-exist in your code. In fact, Microsoft claims that TypeScript is JavaScript and vice versa.

In essence, Microsoft is pushing TypeScript as a complement to traditional JavaScript development. It’s only meant to help developers create more media rich HTML5 applications. It only makes sense as Microsoft is aggressively pursuing HTML5 development in Internet Explorer 10 and Windows 8. The new language could help developers push the limits of HTML5.

Developers may be initially wary of another Microsoft-developed programming language, but Microsoft appears to have only the best intentions in mind with TypeScript. It’s completely open source and free to use. It compiles with JavaScript, and complements any preexisting code.

Interested developers can download an early preview of TypeScript here. You can also test it out for yourself in the TypeScript online playground. Finally, you can get the source code over at CodePlex.

For those who need a more visual explanation, Microsoft has also put together a video walkthrough of all the new features in TypeScript:

  • Nathan Pearce

    Microsoft is not trying to and have not replaced JavaScript. If you are going to write an article, please understand and know a little bit more about the technology you are writing about first!

    To everyone else… This will hopefully make developing large scale javascript frameworks etc a whole lot easier :)

    • http://www.webpronews.com/author/zach-walton Zach Walton

      Did I come off as saying that Microsoft was replacing JavaScript? I thought I made it pretty clear that it complements existing JavaScript applications. I can see that the headline is a little misleading. I’ll take care of that.

      • Isaac Abraham

        Still wrong. Typescript compiles into JS so it actually “is” a JS app. There’s no complementing existing app. TS is not a Microsoft version of JS. Its another language that boils down into JS and at the same time happens to also be backwards compatible with JS.

  • ZyZ

    1) Typescript compiles to javascript. If your eviroment can run javascript it can also run javascript produced by typescript.

    2) You can copy and paste any existing javascript code (that works) directly into typescript and it will work.

    3) If you dont use any typescript specific constructs in your scripts you effectively write javascript.

  • Anacleta

    I liked that you indicate me a framework where I can program using the language TypeScrip

  • Rick

    Is microsoft trying to make another .Net with Typescript? That’s just what we need, companies buying bloated Microsoft tools to do JavaScript development https://plus.google.com/u/0/115228087852945642621/posts/XACvqPYHFRw

    • http://www.webpronews.com/author/zach-walton Zach Walton

      TypeScript is free and open source. It’s not required for JavaScript development, but Microsoft thinks it will help developers create larger and more media rich applications. We’ll see if that is the case as more developers start using it.

  • SexPistol

    This sounds really similar to Google’s Dart language.

  • http://dmss.co.in/ Application Development

    Thanks for explaining about typescript.this one is really helped me.