I’m doing a JavaScript course, i got to know typescript and i definetely see it as a way better alternative and way of writing cleaner code in the usually messed up js.

Anyway it’s not quite clear to me what i should do now, because i understand javascript to a decent level, but i woul love to use typescript in the future for my projects…

It’s knowing javascript in depth better or should i opt into a new course that teaches typescript in depth, if so, do you have any resources (free, paid courses, free docs like MDN or javascript.info) to suggest me?

I’m following the “complete javascript course” from jonas schemdtman, that i got suggested from coding communities, on udemy, which is an 80 hours course that looks quite complete to me, it teaches about the js engine, its compilation style and its runtime too, not just the code, is there anything similar? My goal would be opting into typescript and really digging into it, really learning how it works on code level and behind the scenes.

  • Towerism@beehaw.org
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    1 year ago

    Typescript is a really powerful language due to the fact that it is superset of JavaScript. It allows you to do things with types that you can do in other strongly typed languages like Java or C#. Learning JavaScript first, you would have an easier time grasping advanced typescript concepts. But like others said, JavaScript does allow you to learn bad habits. It takes years to learn how to write JavaScript in a way where you won’t shoot yourself in the foot. TypeScript first would theoretically help keep you on a learning path that would mitigate picking up bad habits. But typescript is a superset of JavaScript after all. If one is determined to sidestep all the nice typings that TypeScript provides you, one can and you will lose all the benefits of TypeScript anyways.