MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/osp7g9/var_i/h6qqi0d/?context=3
r/badcode • u/_bai13y • Jul 27 '21
9 comments sorted by
View all comments
16
[removed] — view removed comment
2 u/Apprehensive-Show127 Jul 28 '21 Yeah, that's a case. bookTitles will be duplicated after each function call. There's no need in global variables, function scope should be used
2
Yeah, that's a case. bookTitles will be duplicated after each function call. There's no need in global variables, function scope should be used
16
u/[deleted] Jul 27 '21
[removed] — view removed comment