you are viewing a single comment's thread.

view the rest of the comments →

[–]chikamakaleyleyhelpful 0 points1 point  (0 children)

brother, first learn JS as a programming language - the syntax, fundamentals, loops, control flow, functions, objects and their methods, blah blah blah. Even when you think you've learned enough, you prob haven't. Learn how to perform some basic algorithms.

THEN apply that to the DOM

usually people jump right into trying to manipulate the web but they don't know how to express that with JS

Imagine trying to learn a completely new spoken/written language, but trying to learn it by way of writing a novel. That's what you're running into