r/badcode • • Jan 01 '22

js Hmm...why doesn't it work lol

Post image
528 Upvotes

58 comments sorted by

View all comments

Show parent comment

1

u/0xF013 Jan 02 '22

Yeah

1

u/doh007 Jan 02 '22

Wouldn't that only be the case if "let" was used instead of "var"?

1

u/[deleted] Jan 02 '22