this post was submitted on 18 Jul 2023
15 points (100.0% liked)
Programming
13455 readers
21 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.