Typescript

20 views
Skip to first unread message

Kaptan Singh

unread,
Aug 28, 2019, 10:50:48 PM8/28/19
to Angular and AngularJS discussion
What language is Typescript written in? and What are advantages over JavaScript?

Sander Elias

unread,
Aug 31, 2019, 12:32:27 AM8/31/19
to Angular and AngularJS discussion
Hi Kaptan,

It is written in Typescript. And the advantage is having types, which help you prevent certain types of bugs, but more importantly, provide your fellow developers with information what you expect when you write a function.

example (simple on purpose!)


As you can see, when you use the function, you get an overview of all parameters, including the type. There will be a red underline if you are trying to give the wrong ammount of parameters, or wrong types. This alone speeds up development a lot.

Regards
Sander

Kaptan Singh

unread,
Sep 5, 2019, 8:58:33 AM9/5/19
to Angular and AngularJS discussion
Thank you Sander!
Reply all
Reply to author
Forward
0 new messages