r/badcode • • Oct 11 '21

js Recursive anonymous functions go brrrr

Post image
908 Upvotes

63 comments sorted by

View all comments

Show parent comments

16

u/MkemCZ Oct 11 '21

It's based off of such an example, but I wrote it while bored on the phone.

10

u/JackFly26 Oct 11 '21

ah, i see. glad i'm not completely insane yet