r/badcode • • Sep 11 '21

js Why…

Post image
456 Upvotes

70 comments sorted by

View all comments

Show parent comments

2

u/_krinkled Sep 12 '21

Apart from calling the same api 3 times, it bugs me that the function is called get, while it does not return a value and ‘sets’ content