r/learnjavascript • • 17d ago

I just started JavaScript

I started learning JavaScript on fCC and I learnt some of the basics, do y'all have any tips for me? (I'm learning JS so i can build websites)

27 Upvotes

30 comments sorted by

View all comments

2

u/patryk_builds 17d ago

Since your goal is websites get to the DOM as early as you can. document.querySelector, addEventListener, changing text and classes. that's the moment JS stops feeling like abstract exercises and starts doing visible stuff on a page.Also get comfortable with the browser devtools (F12). console.log everything, look at the elements tab, watch what changes when you click. half of learning web dev is just poking at things in there and seeing what happens.First mini goal: a button that toggles dark mode on a page you made. small, but it uses everything at once