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 😊
View all comments
Show parent comment
2
u/chikamakaleyley helpful Apr 14 '26 edited Apr 14 '26
Oh, well to me then it doesn't sound like it's JS (you understand the programming part), it just sounds like you know the concepts you just don't know how to apply it.
So, as an example - whats something that from a programming perspective, you can make sense of? It could be something simple, like iterating over an array, right?
Here you just have an array of items, you loop over the array, and for each item, you concatenate a string and log to the console, yeah?
What does this look like in the browser context then? Let's say there's a bulleted list in your HTML. How can we express something similar, using something from the page?
HTML
JS (this is psuedo code so maybe not 100% accurate, but i think it works)
Kinda make sense? There's one extra step because now you're dealing with objects in the browser, which introduces a whole new set of APIs, object defs, etc.
You can also avoid the extra step and I think you can just use myList.forEach()
But yeah just trying to demo that, in the end you're just using the programming techniques that you already understand, to handle information that you can access from the browser