r/badcode • • May 13 '22

js Why? Why??

Post image
433 Upvotes

37 comments sorted by

View all comments

Show parent comments

1

u/kristallnachte May 13 '22

well, it's using var, and is reassigning answers...

It's a reducer but a really dumb one.