MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/uokpka/why_why/i8f9c7t/?context=3
r/badcode • u/zim2510 • May 13 '22
37 comments sorted by
View all comments
Show parent comment
16
Yeah, and the short circuit would ultimately result in the increase of the value of totalAns, which is wrong too.
7 u/BubblyMango May 13 '22 We as readers dont actually know this is unwated behavior.
7
We as readers dont actually know this is unwated behavior.
View all comments
Show parent comment
16
u/zim2510 May 13 '22
Yeah, and the short circuit would ultimately result in the increase of the value of totalAns, which is wrong too.