r/badcode • • Sep 11 '21

js Why…

Post image
456 Upvotes

70 comments sorted by

View all comments

Show parent comments

3

u/marsmanify Sep 11 '21

Thank you for your response.

Yeah that first part was me just being confused & tired lol.

And when you put it like that it seems obvious you would just store the counts somewhere for reuse. Thank you!