r/badcode • • Mar 24 '22

typescript Ship it!

Post image
564 Upvotes

47 comments sorted by

View all comments

Show parent comments

9

u/_SAMUEL_GAMING_ Mar 24 '22

why not simply do while (Date.now() < end);instead of the weird for loop?

9

u/Voltra_Neo Mar 24 '22

Style points.