Skip to main content

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 from this blog

Let us understand DevOps

What Will You Learn ? DevOps is a set of practices that combines software development (Dev) and IT operations (Ops) This article will get you started with the fundamentals of DevOps and understanding how to use it in real projects Understanding what DevOps is and why it's needed along with the basic terminologies Getting started with DevOps and understanding its architecture and lifecycle Introduction to Git and it's basic commands Introduction to Docker, Docker container and it's related concepts Getting started with Jenkins and understanding how to integrate it with Github Basics of Selenium and Nagios Who is the target audience ? Students and industry professionals who wish to get hands-on something called DevOps Users who wish to learn how to integrate the processes between software development IT teams and manage various projects Benefits Improved operational support and faster fixes Good processes across IT and teams, including automation Increased team flexibility an...

What is Hard Disk? Definition, functions and types.

In this article, you will know what is Hard Disk and what are these types? Hard disks are also often called Disk drive or "Hard Disk Drive (HDD)". Just as a library is required to handle books in the library, the same computer also needs a similar place in which it can store digital data .  Computers use two types of storage devices to store and process digital content (Document, Image, Videos, Software, Operating system, Program). In which Hard Disk is a secondary memory device. It keeps the data stored permanently. Whereas the primary memory device (RAM) serves to process the program of the computer . It is also called temporary memory. Hard Disk is seen as an important component of a computer because no computer will work without it. In this post we will tell you what is a hard disk in a computer ? In which you will get to know a lot about Hard Disk. So let's first know, what is called a hard disk and then we will talk about other aspects of it. What is hard disk ...

Artificial Intelligence

Artificial Intelligence When we prepare a computer in such a way that it can act like a human's intelligence, it is called artificial intelligence says that when we set a program in a machine that it can work like human so where does he go to artificial intelligence . To understand AI it is necessary to understand these 6 words Visual Perception Speech Recognition Decision Making Language Translation Knowledge Reasoning Ability According to John Macatha's father of Artificial Intelligence, It is the science and engineering of making intelligent machines especially intelligent computer programs.  Artificial Intelligence is a way to build a computer, a computer-controlled robot, or a software intelligence. Things, just as intelligent people think. A.I is studied by the fact that humans how the brain thinks, and how humans learn, decide, and try to solve a problem work, and then the results of this study based on developing intelligent software and system use. The goal of Artific...