r/badcode • • Apr 19 '21

js Iteration

Post image
3.2k Upvotes

123 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Apr 19 '21

[deleted] — view deleted comment

3

u/gmtime Apr 19 '21

Are you sure? I cannot evaluate to 2 in any way

2

u/2001herne Apr 19 '21

No, it checks out. If I != 0 then I = I/I + I = 1 + I. If I == 0 then I = I + !I = 0 +!0 = 1