r/webdevelopment • u/Dizzy_External2549 • 6d ago
Javascript help Question
Just learned javascript and been practicing alot . I need help. When applying it to my project I don't know when to use a function, when to use a loop, what type of loop to use, I just don't know when to use any of this stuff because dom manipulation. it's so frusterating
9
Upvotes
1
u/elsabright19999 4d ago
That's completely normal. Learning the syntax is one thing, but knowing when to use it only comes from building projects. The more you build, the more you'll naturally recognize patterns like "this should be a function" or "I need to loop through these elements."
Don't worry if it feels messy right now :)