Using Typescript instead of JavaScript | Sololearn: Learn to code for FREE!

+2

Using Typescript instead of JavaScript

Why I must use Typescript whereas the ECMAScript 2020 has 90% of good features of Typescript?

6/17/2020 3:08:56 PM

MohammadReza

8 Answers

New Answer

0

MohammadReza I do not sure where did you get the information about ECMAScript 2020 has 90% of good features of Typescript. Typescript actually complement the features wherever the modern JavaScript are lacking of. Typescript allows developers write strong type language which is making codes more reliable by easily to detect errors from compiler. With type safe, Typescript makes us write the real OOP. Typescript precompile the latest JavaScript code to ES5 in order to supports most of the browsers. All the above mentioned are the main features of Typescript, where modern JavaScript does not able to perform them. Typescript makes us write better JavaScript codes, it does not intend to replace modern JavaScript, nor modern JavaScript can replace typescript, they complement one another perfectly.

+2

You don't have to. Many developers prefer typescript over javascript. But typescript is not must. Typescript getting more and more popular. You should learn typescript but it is not must

+1

Calviղ Thanks but I read that ECMAScript has good OOP and almost everyone likes Typescript refers to it's type hinting in the end, I see your answer perfect Thanks

+1

Calviղ Thanks I'm leaning Typescript now and it is almost coercive for me I must create a custom visual for PowerBI and it was painful for me at start 😂😂 and Now I'm developing a table plugin like datatable (but simple) for more learning

0

ES 10 does not support type hinting, the reason why many developers use TypeScript. It is not a must though. However some frameworks like Angular require TypeScript.

0

🇮🇳Vivek🇮🇳 Thanks for your answer some frameworks like Angular require Typescript then it is must..

0

Ore Thanks

0

MohammadReza Go to learn Typescript now, you would understand later why typescript helps build the real OOP for JavaScript.