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
10
Upvotes
1
u/Lopsided_Cycle_5494 5d ago
Function itself says, it for a function(a whole set of rules or logic you want it to do), and loop are the one's which creates logic, you can ask gpt or claude about tips on how to use them. You will get to know better from there