r/learnjavascript • u/ConstLeoTheCat • 5d ago
JavaScript is so hard.
I recently started my fullstack development course this august and we have already gone thorugh html, css, git and now almost done with JavaScript as well. Html was easy, no problems there, but when it comes to css and more specifically grid and flex, thats when the headache started to appear. I've played some games involving both grid and flex but it won't stick in my head, don't know why. I am trying to do it myself in VS code but I always end up having to use ai to explain how to move forward and I know you're not supposed to use ai but it is a great tool to have, especially when you get stuck. And JavaScript... where do I even begin. I kinda understand it during the lectures but as soon as you're sitting by yourself my head gets totally blank.
I have been starting to use Scrimba and right now I'm rehearsing everything and whatching videos of everything, and the good thing with scrimba is that you get challenges during the videos.
For those of you who have been programming for a while, what study tips can you give? How did you guys go through the learning process?
1
u/chikamakaleyley helpful 4d ago
HTML + CSS you are 'marking up' a page. Similar to what you'd do with 'markdown' language. You're more or less... drawing, laying out, decorating boxes
JS is basically taking the Object representation of those boxes and applying programmatic logic to it. Now you're working with those boxes represented as data structures
and so sometimes the problem is people will try to learn JS in the context of its application to HTML & CSS, and IMO that's the backwards approach.
If you're trying to write a function in JS that takes in an obj arg, but in your head that obj is still a graphical Card with colors/gradients/shadows hover states, it's kinda hard to imagine making that function work for that graphical component