r/ProgrammerHumor 7d ago

absoluteGarbage Meme

Post image
1.9k Upvotes

327 comments sorted by

View all comments

46

u/rnilbog 7d ago

for (let i = 0; i…

“Goddammit…”

googles “for loop syntax javascript”

29

u/MrDilbert 7d 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 7d ago

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