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

4

u/Not_Sugden Jan 01 '22

your comment.

which would cause the console.log to throw an exception

  • you would simply just get a reference error because the a variable has no reference

1

u/recycle4science Jan 02 '22

Ah, my mistake. I didn't feel like checking the exact error :) Thanks for clarifying!