What is TypeScript?
TypeScript and ECMAScript6(ES6)
How to use TypeScript?
var Name:string = "Rohatash"
Type Script Features
TypeScript provides powerful features as object-oriented languages such as Classes, Interfaces, and Modules etc. You can write fully object-oriented code for client-side as well as server-side development.
TypeScript uses static typing. This is done using type annotations. It helps type checking at compile time. Thus, you type the code in typescript without compiling or running the code you can find errors. Additionally, using the type inference mechanism, if a variable is declared without a type, it will consider that based on its value.
Optional Static Typing
TypeScript static typing is optional, when we assign any value to the variable. At the compilation time typescript will not show any error.
ES 6 Features
TypeScript includes most of the features which planned ECMAScript 2015 (ES 6, 7) such as class, interface, Arrow functions etc.