What is Typescript?

devquora
devquora

Posted On: Feb 22, 2018

 

Typescript is a free and open-source programming language which is designed and developed by Microsoft. It was designed by Anders Hejlsberg at Microsoft. Typescript is a superset of JavaScript which primarily provides optional static typing, classes and interfaces. Typescript is compiled to provide clean and simple JavaScript code which runs on any browser. It allows JavaScript developers for using highly productive development tools and practices like static checking and code refactoring.

Differences between Typescript and JavaScript are

  1. JavaScript don’t support Es6 while Typescript supports .
  2. JavaScript build up reusable components by using unctions and prototype-based inheritance while Typescript supports Classes that allow programmer to think in more object oriented way .
  3. JavaScript don’t have any interfaces while Typescript has interfaces.
  4. There is no static typing in JavaScript whereas there is static typing in Typescript.
  5. JavaScript has no optional parameter  feature while Typescript has optional parameter feature.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Typescript Interview Questions

    List some features of Typescript?

    Features of Typescript are:- Typescript can be compiled to all major versions of Javascript(ES3,ES5,ES6,ES7). Typescrip..

    Typescript Interview Questions

    List some benefits of using Typescript?

    Following are some benefits of using Typescript One of the biggest advantages of Typescript is its code completion and ..

    Typescript Interview Questions

    Who developed Typescript and what is the current stable version of Typescript?

    Typescript was developed by Anders Hejlsberg in 2012, who is the lead architect of C# and the creator of Delphi and Tur..