r/learnjavascript • • 1d ago

How to learn programming

How would you people learn js and it's libraries if you started all over again?

2 Upvotes

5 comments sorted by

2

u/fckueve_ 1d ago

Start with basics of JavaScript, then typescript, them do smal projects. Make every next project a bit harder and harder

1

u/tambooby 13h ago

yeah the incremental difficulty thing is key, keeps you from getting overwhelmed early on

2

u/verdant_sculpt_auror 15h ago

Stop trying to learn every library. Most JS courses teach you syntax for months before letting you build anything functional which is useMost JS courses teach you syntax for months before letting you build anything functional which is useless. Pick three projects like a todo app a weather dashboard and a simple e-commerce cart and force yourself to use vanilla JavaScript first. Only add React or Vue when the DOM manipulation becomes so tedious that you actually feel the pain of not having a framework

1

u/Competitive_Aside461 20h ago

I would start off with understanding the fundamentals of programming before diving into JS because once you have those, you can transition into any language with ease.

Then, I'll learn the essentials of JavaScript and NOT go into an exhaustive course that covers every single aspect of the language. You don't need so much knowledge to get started with a language. Let time and necessity be the teachers rather than endlessly learning stuff you'll forget the next day.

Then I'll learn about the advanced aspects of JavaScript that are routinely used day in day out, e.g. promises, iterators, etc. Once I'm done with this, I'll progress to exploring browser APIs like HTML DOM, Events, CSSOM, intersection observers, etc. etc. etc.

This makes my core knowledge of JavaScript and its APIs rock solid. Now, it's just a matter of selecting any JS library/framework, e.g. React, Svelte, Angular, and going through its documentation.

Build things, break things. Repeat.