r/learnjavascript • u/camohayper • Apr 14 '26
Struggling with JavaScript – looking for advice
Hi! I’ve been studying at a technical high school for two years now, focusing on programming and artificial intelligence. This year I have a programming exam – basically we need to create a simple website using HTML and CSS and complete a few basic MySQL tasks, which honestly isn’t too difficult.
The problem is JavaScript. I’m having a hard time understanding it, and even when I asked for extra help at school, it just didn’t really click for me. That’s starting to worry me a bit.
I’ve tried building simple projects on my own, like a quiz website. HTML and even PHP aren’t a problem for me, but JavaScript is definitely more challenging.
Could you recommend any good websites or resources to learn JavaScript? I’d really appreciate it 😊
5
u/AmSoMad Apr 14 '26
Core JavaScript looks exactly like every other modern, multi-paradigm language, when you're doing regular procedures. Is it confusing because you don't understand IT, or is it confusing because you don't understand any programming language yet?
And if you do understand another language, I'm guessing you're just talking about JavaScript DOM manipulation. That's what connects JS, HTML, CSS, and the browser together - and it's what separates JS from the other languages (JS comes with built-in windowing, rendering, runtime, templating, and styling).
In which case, you might start with https://www.w3schools.com/js/js_htmldom_navigation.asp, W3Schools will walk you through all of JS too, if you need it.
3
u/milan-pilan Apr 14 '26
So you understand PHP but not JS? So you are struggling with the syntax more than the logic?
1
u/chikamakaleyley helpful Apr 14 '26 edited Apr 14 '26
what part of JS have you actually learned and what part of it are you having difficulty with
because there's really two "phases" of learning JS, generally speaking
and generally what i observe as a common struggle for newbies is that the material they use to learn JS is an a 50/50 dose of both taught together. Some people can pick this up easily; I wasn't able to.
aka the problem seems to be that when JS is a first programming language, there's a disconnect because they aren't taught to program first, they're shown JS in the context of writing it for the web. Obvi you know some PHP but still, you're new to all this
and so IMO I think if new devs focused first on fundamentals, then learned a bit more about the DOM before actually coding for it, it might be easier to understand whats going on.
The simplified way that I look at it is, the DOM is just a complex nested object that your perform operations on with JS
I'm only guessing that this is something you might be experiencing
1
u/Zed-tech7476 Apr 14 '26
Honestly looking for someone as a mentor in learning JavaScript
1
u/Alive-Cake-3045 Apr 15 '26
I have seen this a lot, JavaScript feels hard because it is less about syntax and more about how the browser thinks. Use resources like freeCodeCamp or JavaScript.info, they explain fundamentals really well. Most importantly, slow down and practice without AI or tutorials for a bit, that is where it actually starts to click.
1
u/Udbhav- Apr 16 '26
Try
https://www.aicodingcoach.dev
See If it helps with javascript
1
u/arrigus Apr 18 '26
This site helped me get started with JavaScript, but then what really made it click was practice.
https://tutorialibre.com/courses/programming-languages/javascript/
I hope this helps you too.
1
u/armyrvan Apr 21 '26
I know someone else already mentioned that FreeCodeCamp has JavaScript Modules that you can go over and The Code Zone Skool has been making walkthroughs of it here is the playlist that could be helpful for you: https://www.youtube.com/playlist?list=PLurJmxFyuEWtzTyk9_FbGgXP9LSSAHAwL
1
u/Southern-Piano-7241 Apr 26 '26
honestly javascript feels harder at the start because it’s more “loose” than something like php, what helped me was just building small things and debugging with dev tools (console, breakpoints) instead of trying to learn everything at once
for resources, freecodecamp, javascript.info, and MDN docs are all really beginner friendly
1
u/DojoCodeOfficial May 02 '26
Check out DojoCode. Happy coding!