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, provides support for existing JavaScript libraries like jQuery, D3.js
- It includes features from ES6 and ES7 that runs in ES5-level JavaScript engines like Node.js
Thanks Ayush bhai maine bola or aapney typescript ke bare me samzaya
ReplyDelete