9 years on, I still google "javascript for loop"

Nočnica Mellifera - Mar 19 '21 - - Dev Community

cover image by Libertinus Yomango

also despite writing Markdown every day for the last three years, I messed up the link above in v1 of this article

So, I'll admit it: sometimes I forget basic syntax. I think what gets me is the semicolons inside the parentheses. I feel like they should be commas? I don't know.

The point is that when I write for loops:

let str = '';

for (let i = 0; i < 9; i++) {
  str = str + i;
}
Enter fullscreen mode Exit fullscreen mode

I always manage to mess up just enough that it's better to grab the syntax from the MDN than it is to write over again.

And really, it feels like a shameful admission but I don't feel embarrassed. H*ck I do stuff like this on my livestream and I don't think there's any reason that we shouldn't copy and paste basic syntax.

This is a place of honesty, take a moment to admit your not-so-shameful 'shameful secrets' about the reality of working in tech.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player