Skip to main content

Posts

Showing posts from August, 2021

What is TypeScript?

  What is TypeScript? TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It is pure object-oriented with classes, interfaces and statically typed programming languages like C# or Java . You will need a compile and generate the code in the JavaScript file. Basically, TypeScript is the ES6 version of JavaScript with some additional features. Why do we use TypeScript? Using new features of ECMAScript Static Typing Type Inference Better IDE Support Strict Null Checking Interoperability Features of TypeScript Cross-Platform Static-Type Manipulation DOM Manipulation Object-Oriented Language Optional Static Typing ES6 Features Benefits of TypeScript Fast, simple, easy to learn and runs on any browser or JavaScript engine It is similar to JavaScript and uses the same syntax and semantics This helps backend developers write front-end code faster You can call the TypeScript code from an existing JavaScript code The Definition file, with .d.ts extension, provide