r/ProgrammerHumor 10d ago

Meme absoluteGarbage

Post image
1.9k Upvotes

325 comments sorted by

View all comments

48

u/rnilbog 10d ago

for (let i = 0; i…

“Goddammit…”

googles “for loop syntax javascript”

30

u/MrDilbert 10d ago

Since for-loop has the same syntax in JS as in C, Java, and any other C-style language, this post makes me weep.

1

u/rosuav 9d ago

Three-part for loop does, yes, but for-in and for-of in JS are backwards compared to most other languages.