+ 2

Using Typescript instead of JavaScript

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

17th Jun 2020, 3:08 PM
MohammadReza
MohammadReza - avatar
8 Réponses
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.
18th Jun 2020, 2:30 PM
Calviղ
Calviղ - avatar
+ 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
17th Jun 2020, 3:25 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
+ 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
19th Jun 2020, 10:45 AM
MohammadReza
MohammadReza - avatar
+ 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
19th Jun 2020, 11:48 AM
MohammadReza
MohammadReza - avatar
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.
17th Jun 2020, 3:30 PM
Ore
Ore - avatar
0
🇮🇳Vivek🇮🇳 Thanks for your answer some frameworks like Angular require Typescript then it is must..
19th Jun 2020, 10:48 AM
MohammadReza
MohammadReza - avatar
0
Ore Thanks
19th Jun 2020, 10:48 AM
MohammadReza
MohammadReza - avatar
0
MohammadReza Go to learn Typescript now, you would understand later why typescript helps build the real OOP for JavaScript.
19th Jun 2020, 11:39 AM
Calviղ
Calviղ - avatar