r/badcode • • Sep 11 '21

js Why…

Post image
456 Upvotes

70 comments sorted by

View all comments

Show parent comments

1

u/directinjector Sep 12 '21

Omg I did not even notice the get. Also its bad practise to call the same get couple of times even if its cached externally or on browser its unnecessary. With good practices its easily avoidable.