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.

  • dog@suppo.fi
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 year ago

    You’re better off first learning Typescript. It’s the only one of the two I’d consider a “programming” language.

    Due to the strict nature of TS, you’ll quickly learn the correct practices of Javascript, and moving from TS to JS is super easy.

    If you learn Javascript instead, you’ll likely run into a lot of issues moving to Typescript, due to how much slack it gives. Incorrect types, incorrect this, incorrect classes, incorrect invocations, incorrect references, unused variables, etc.

    Edit: What makes learning JS even worse is the bad habits you learn. Humans, especially adults, really struggle to get rid of bad habits. It makes life miserable until you get rid of them.