- Cross-Platform: TypeScript runs on any platform that JavaScript runs on. The TypeScript compiler can be installed on any Operating System such as Windows, macOS, and Linux.
- Object-Oriented Language: TypeScript provides powerful features such as Classes, Interfaces, and Modules. You can write pure object-oriented code for client-side as well as server-side development.
- Static type-checking: TypeScript uses static typing. This is done using type annotations. It helps type checking at compile time. Thus, you can find errors while typing the code without running your script each time. Additionally, using the type inference mechanism, if a variable is declared without a type, it will be inferred based on its value.
- Optional Static Typing: TypeScript static typing is optional, if you prefer to use JavaScript's dynamic typing.
- DOM Manipulation: Like JavaScript, TypeScript can be used to manipulate the DOM.
- ES 6 Features: TypeScript includes most features of planned ECMAScript 2015 (ES 6, 7) such as class, interface, Arrow functions etc.
Wednesday, June 30, 2021
TypeScript Best Important Features
Subscribe to:
Post Comments (Atom)
How to build an Express and Node.js app with Typescript
In this tutorial, you will learn how to set up a Node.js and Express project with Typescript and live auto-reloading. Note that this metho...
-
Below is a simple form with two fields and a button. We will use this setup to illustrate the different ways to disable form controls. He...
-
ngx-image-compress demo Upload and compress Image Upload Image only Click For Demo
-
TypeScript is an open-source object-oriented language developed and maintained by Microsoft, licensed under Apache 2 license. It is a typed ...
No comments:
Post a Comment