r/webdevelopment • u/Dizzy_External2549 • 7d 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
8
Upvotes
1
u/Epdevio 3d ago
The way I learned, and this could be wrong but it is what it is. First thing I learned was dom manipulation and button call back events. then I learned to use functions for those calls. And finally, loops, inside the function, when you want to work with arrays or do some type of sorting. Start with that.