Anders Hejlsberg developed TypeScript. It was first introduced for the public in the month of 1 October 2012. After two years of internal development at Microsoft, the new version of TypeScript 0.9 was released in 2013. The current version of TypeScript is TypeScript 3.4.5 which was released on 24 April 2019.
|Definition||TypeScript is a free and open-source pure object-oriented programming language. It is developed and maintained by Microsoft.||ES6 is a version of ECMAScript (ES), which is a scripting language specification standardized by ECMA international.|
|Explanation||Typescript is to eradicate the development errors.||ES6 is comparatively more flexible in development time.|
|Data-Types||TypeScript supports all primitive data types.||ES6 does not support all data types.|
|Features||TypeScript contains features such as generics and type annotations, Inference, Enums, and Interfaces.||ES6 does not support these features.|
|Scope||Typescript has three scopes.
||ES6 has two scopes.
|Modules||TypeScript Modules are of two types:
||We can classify the ES6 modules in two ways:
|Loop||Typescript and ES6 both are having same loops.
||Typescript and ES6 both are having same loops.
|Why choose||The developers choose TypeScript:
||The developers choose ES6:
|Company using||The list of companies which uses TypeScript are:
||The list of companies which uses ES6 are: