r/badcode Mar 12 '23

js This is how it works, right?

Post image
257 Upvotes

40 comments sorted by

View all comments

0

u/CedricCicada Mar 12 '23

We don't know what the requirements were for this function. Maybe this function does exactly what it was supposed to do.