What is TypeScript?

 What is TypeScript?

TypeScript (.ts)

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?

  1. Using new features of ECMAScript
  2. Static Typing
  3. Type Inference
  4. Better IDE Support
  5. Strict Null Checking
  6. Interoperability

Features of TypeScript

Features of TypeScript

  1. Cross-Platform
  2. Static-Type Manipulation
  3. DOM Manipulation
  4. Object-Oriented Language
  5. Optional Static Typing
  6. ES6 Features

Benefits of TypeScript

  1. Fast, simple, easy to learn and runs on any browser or JavaScript engine
  2. It is similar to JavaScript and uses the same syntax and semantics
  3. This helps backend developers write front-end code faster
  4. You can call the TypeScript code from an existing JavaScript code
  5. The Definition file, with .d.ts extension, provides support for existing JavaScript libraries like jQuery, D3.js
  6. It includes features from ES6 and ES7 that runs in ES5-level JavaScript engines like Node.js

Comments

  1. Thanks Ayush bhai maine bola or aapney typescript ke bare me samzaya

    ReplyDelete

Post a Comment

Popular Posts