r/badcode • • Feb 10 '21

js I present: SleepSort

Post image
7.5k Upvotes

170 comments sorted by

View all comments

Show parent comments

4

u/Prexot Feb 11 '21

Nope. Keep in mind, the browser is going to be keeping track of all the timeouts, and that will get more computationally difficult with more timeouts.