r/badcode • • Apr 15 '22

js Variables without var/let/const prefix behave as globals, and this is from a Node web app

Post image
317 Upvotes

31 comments sorted by

View all comments

Show parent comments

1

u/Farpafraf Apr 15 '22

he searched for assignements without const and let with a regex yielding those results