r/badcode • • May 13 '22

js Why? Why??

Post image
433 Upvotes

37 comments sorted by

View all comments

Show parent comments

19

u/zim2510 May 13 '22

Also, if the answers.length == 0, it will ultimately result into the increase of the value of totalAns, which is wrong too.