DEV Community

Cover image for TypeScirpt
sohelrana22
sohelrana22

Posted on

TypeScirpt

Typescript:

Typescript: Microsoft created and maintains TypeScript, an open-source programming language. It is a strict syntactical superset of JavaScript that extends the language with optional static typing. TypeScript is intended for large-scale application development and trans compiles to JavaScript.

Why is Typescript called the SuperSet of Javascript?

A superset is a set that contains one more set. Since JavaScript is a progressively composed language, there are no information types, and that implies no arrange time blunders. We generally get mistakes in JavaScript that say, "Can't peruse property x of unclear." This is an issue that Typescript settles. It adds type-checking to your JavaScript code. Typescript is a superset as in you can compose real JavaScript without utilizing any of the additional elements Typescript gives. The primary motivation behind Typescript is to give static sort checking to your JavaScript code and to give additional usefulness that the current JavaScript standard doesn't give.

TypeScript vs. JavaScript What Is the Difference Between JavaScript and TypeScript?

On the off chance that you've at any point dealt with a web advancement project, you've likely run over JavaScript. For some, electronic tasks, JavaScript is as of now the most famous programming language.

TypeScript is an open-source programming language that is appropriate for enormous scope applications. Microsoft made TypeScript in 2012 in light of the fact that the code of JavaScript was turning out to be more modern when it came to enormous scope web applications.

Thus, changing the JavaScript (.js) augmentation to TypeScript (.ts) will have a similar impact. Notwithstanding, this doesn't infer that JavaScript and TypeScript are tradable.

TypeScript has the following features:

To make TypeScript code intelligible by programs, it is meant JavaScript: Because programs can't comprehend a solitary line of TypeScript code, the composed code is assembled and afterward changed to JavaScript code, which programs can comprehend and utilize. This is alluded to as trans-heaped.

Top comments (0)