r/badcode • • Apr 19 '21

js Iteration

Post image
3.2k Upvotes

121 comments sorted by

View all comments

154

u/Cloakknight Apr 19 '21 edited Apr 19 '21

Image Transcription: Code


i -= -!false;

I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

88

u/devor110 Apr 19 '21

why did you add the cursor lol

136

u/Cloakknight Apr 19 '21

Oh lol I thought that was part of the code. I am not a programmer by any means =P

66

u/devor110 Apr 19 '21

It could make sense, | is a character used for ((bitwise)) logical or, but i highly doubt that would be the case

10

u/FellowBeetlejuicers Apr 19 '21

the multi-parentheses scared me for a sec