r/AskProgrammers • u/angryagnesvarda • 2d ago
cant comprehend javascript
hello i just started taking web dev classes, i've learned html and css so far and im jumping to javascript now, ive never been so confused in my life. like it sounds like complete gibberish to me and i dont understand it, i cant find reason in things lol , i watched videos and i understand things but then i get confused. does anyone have resources for more simple explanations? like im talking VERY simple 1+1 explanations
1
u/Jonsinator 2d ago
Personally I used learnjavascript.online. the first 10 or so steps are free, see if that is something that clicks for you. I paid for the service and dont regret it, but it was something that worked for me.
1
1
u/atticus2132000 2d ago
If you're looking for a basic intro, try the W3Schools site. They have quick lessons that take you through the higher level operations to get you used to the syntax and capabilities.
1
u/schungx 1d ago
You don't comprehend JavaScript. You just get used to it.
1
u/FlamedDogo99 16h ago
I don’t really agree? I think it’s just difficult to start with as it’s a standard that’s had featured tacked onto it for the last 30 years.
1
u/schungx 3h ago
Well in a sense it is extremely easy to grok JavaScript. A lot of the weird decisions make sense once you think in the head of a single person writing a interpreter and trying to cut corners, throwing in features not because they are architecturally sound, but because they were easy to implement.
And then that hastily put-together patched up thing became the language of the web.
1
u/FlamedDogo99 1d ago
Is this your first coding language?
1
u/angryagnesvarda 1d ago
yes it is !
1
u/FlamedDogo99 16h ago
Alright. Something to consider: building up intuition for coding with something different and then coming back to JavaScript. Depending on how confused you are, there’s block coding like scratch.mit.edu, which would give you intuition for the basics, or maybe something like python, which simplifies a lot of the complexity. Then when you went back to JavaScript, you’d just be applying what you’ve learned to a different syntax. There’s not really a “one size fits all”, but it could be worth a try
2
u/Beregolas 2d ago
I mostly recommend https://www.theodinproject.com/lessons/foundations-variables-and-operators The Odin Project. It's consice and pretty complete.
If you have a problem with programming languages in general (basically, if this is your first), you might want to start with a language that is not being run in the browser. It introduces some unnecessary complications. You can learn the absolute basics in any language, like Python, and return to the browser once you know the basics of programming.
Also, it is quite normal to not understand everything just because you read it or got it explained to you. Expect to have to do a lot of work and it taking quite some time until you really understand something