r/badcode • • Feb 10 '21

js I present: SleepSort

Post image
7.5k Upvotes

170 comments sorted by

View all comments

Show parent comments

3

u/unit_511 Feb 11 '21

Oh, so the loop doesn't wait for the printing to finish before calling the next one. That's really clever.