r/learnjavascript • • May 07 '26

Day 3

Day 3 of #100DaysOfCode

Learned: Loops in JavaScript — for loop, for...in loop, for...of loop, while loop, do...while loop, and forEach loop

Looking for solid JavaScript notes/resources — any recommendations?

#JavaScript #100DaysOfCode

0 Upvotes

6 comments sorted by

View all comments

Show parent comment

3

u/BasedZhang May 08 '26

This is very helpful. I need to run this code myself to understand some parts a bit better but as someone who is currently frozen studying loops and arrays this definitely helps.

1

u/ChaseShiny May 08 '26

You're welcome! If you find all this overwhelming, keep in mind that the while loop can handle any of the above.

If, on the other hand, you're nervous about making infinite loops by mistake, which was my biggest worry when starting out, for...of loops might be better to start with.