Brief knowledge of Typescript

Posted By Damandeep Singh | 29-Jul-2018

When JavaScript was developed then Javascript developed team introduced Javascript that can be used as a client-side programming language. But when people were using JavaScript then developer get to know that it can also be used as a server-side programming language. But when JavaScript was growing and became popular than the code of javascript became complex and heavy. Because of this reason, JavaScript was not able to full fill the requirement of OOP's language. Then TypeScript was developed by the development team to overcome it.

Features of TypeScript:

TypeScript code is converted into JavaScript Code:

TypeScript code is not understandable by the web-browsers. That is why if the code is written in TypeScript then it should be compiled and converted the code into JavaScript. With the help of JavaScript code, a browser is easily able to read the code and display it on the web browser.

Javascript is TypeScript:

Whatever code is written in JavaScript can be easily converted into TypeScript by changing the extension of it from .js to .ts.

Use TypeScript anywhere:

TypeScript code can be used for any browser, devices or in any operating System. TypeScript is not specific for any virtual machine or else.

TypeScript supports JS Libraries:

With TypeScript, developers can use existing JavaScript code, incorporate popular JavaScript libraries, and can be called from other javascript code.

Advantages of using TypeScript over JavaSript

  • TypeScript always points out the compilation errors at the time of compilation only. Because of this at the run-time, the chance of getting errors are very less whereas JavaScript is an interpreted language.
  • TypeScript has a feature which supports static typing. That means Static typing allows for checking type correctness at the time of compilation. this is not available in JavaScript.
  • TypeScript is not but JavaSript has some additional features of ES6. TypeScript compiler can compile the .ts files into JavaScript whether it is supported by the browser or not.
Request for Proposal

Recaptcha is required.

Sending message..