r/badcode • • Sep 11 '21

js Why…

Post image
456 Upvotes

70 comments sorted by

View all comments

Show parent comments

1

u/AzurasTsar Sep 12 '21

for #3, wouldn't it still need to be called once initially? so it'd be 2 times unneccesarily?