
for vs while loop: the difference and which to choose. Compared on five criteria, plus when you need do...while and how to fetch every API page safely.

for in vs for of in JavaScript, explained simply. Why for in over an array gives "0" and "1" as strings, why for of crashes on an object — and which to pick.

for loop or map in JavaScript: what's the difference and which to pick. A comparison on five criteria, where forEach fits, and the await-inside-map trap.

An infinite loop: the tab froze, the fan is screaming, the server gets thousands of requests. Three real causes — from React useEffect to while — how to check and fix.

What is a loop in programming, in plain words: repeat one action for every item in a list. Why you almost never know the number of repeats in advance.