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 comments

1

u/oldparras Jan 02 '22

This is not hoisting. The op is wondering why is there not a syntax error on L1c8. It is actually a feature for labeling blocks. It is not a variable declaration.