Why use TypeScript?
Siblings Software
Top-notch technology lovers, we simplify companies' and users' lives through our high-quality, innovative solutions
TypeScript is an open source programming language developed by Microsoft in 2012.
Superset of JavaScript
It is a superset of JavaScript, which adds static types and class-based objects. Basically, it is JavaScript with some added values. In the end, Typescript transpiles to JavaScript.
It has a great acceptance within the community, being one of the most valued languages in the prestigious annual Stackoverflow survey.
It has the ability to detect errors at compile time, that way you will write reliable code and will be able to mitigate the shortcomings of JavaScript. It’s an amazing fact about learning what TypeScript is
As browsers do not understand TypeScript, it is necessary to transpile it to JavaScript before using it. TypeScript can be transpired into any variant of JavaScript / ECMAScript that we want. For example, if we know that our project will work in old browsers, we can force it to compile to ECMAScript 5 (the classic JavaScript). However, if we are clear that users are going to use relatively recent browsers, we can generate a simpler final code supported by ECMAScript 6 or a later version.
领英推荐
The main characteristics of TypeScript are:
Conclusions
In conclusion, TypeScript is easy to learn coming from JavaScript and ends up turning it into an adult language comparable in many ways with Java or C #.
In medium or large projects