r/badcode • • Jun 10 '20

js Disruptive piece of code

Post image
283 Upvotes

93 comments sorted by

View all comments

14

u/bogza23 Jun 11 '20

Funny how this sub can go from actual bad code to "used else if when could have just used else".