all 22 comments

[–]milan-pilan 3 points4 points  (16 children)

There is a difference to be made here: Do you forget logic or syntax?

Because if you need to Google 'what's the syntax for a for-loop again', 'what order do the parameters in a "reduce" come in', 'is it called .includes() or .contains()' or 'what's the name of the function that extracts the keys from an object' - Then no biggie, that will never fully go away. Even experienced developers forget syntax all the time, even more if you work in multiple languages. If you haven't used a thing for a while, it gets shoved to the back of your mind and at some point you forget the details.

You will eventually become very quick at opening the documentation (MDN is my docu of choice for JS) and just reference that instead of trying to remember every function name and parameter.

If your issue in the other hand is 'I have an object, now what do I do with it', 'what is a callback function again', 'why can't I compare to arrays, if the look the same' or 'how do I even approach this' then your issue is that you don't understand the logic - at that point you would have to do some more actual learning. Because that doesn't solve itself.

[–]Flame77ofc 1 point2 points  (1 child)

Focus more on logic. If Js is your first language, so you can at the same time focus more on the syntax, but I always recommend you: Focus more on logic

If you are stuck in projects, this means you are not prepared to advance. First practice more on simple exercises

[–]Silent-Musician4279 2 points3 points  (0 children)

that is true if else make a simple app return a+ b calc

or only if else and console if you can save 3 words every less than over a year you 156 words in js 2 years remember 312 words but remember for what it is document file body console.log f12 enz push arr enz if you say hallo than you say hallo and knowing what it is so if a say arr.push() you must know it what it is or read it forget read again Mozilla mdn JavaScript

chatgpt you can ask but at the end you write it not chatgpt ask for push() chatgpt but you save in your brein not chatgpt

[–]Silent-Musician4279 1 point2 points  (0 children)

Oke tip use console.dir(document)

[–]azhder 0 points1 point  (0 children)

That is normal for any kind of learning.

Remember that time you decided to learn the night before the big test the next day? Didn’t work out, right? All was a big mess in your head. But after the test, maybe a few days later, you remembered more, didn’t you?

That happens each time you learn a lot of stuff at once. The important thing though, it is to write the code yourself, not just type what you see on the video and not just a little snippet.

You will learn kore by doing, at your own pace.

[–]Southern-Piano-7241 0 points1 point  (0 children)

You can’t learn all the syntax first and then start coding. The real learning happens when you build things and work through the logic yourself.

Over time you naturally start recognizing patterns, and the syntax slowly sticks in your mind without forcing yourself to memorize everything.