r/JavaScriptTips • • Jun 16 '23

🧠 Test Your JavaScript Knowledge!

Can you predict the output of this JavaScript code snippet without running it? šŸ¤”

A) {name: "Bing"}
B) undefined
C) SyntaxError
D) ReferenceError

1 Upvotes

10 comments sorted by

View all comments

1

u/Spartaman23 Jun 20 '23

The semi colon would auto delete in vscode then I’d get a?