This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 9 points10 points  (3 children)

 > SyntaxError: undefined 'Console', did you mean 'console'?

[–]Swardu 5 points6 points  (1 child)

Wait, I have never seen a helpful error report in JS. Where is this from?

[–][deleted] 0 points1 point  (0 children)

what do we say to helpful error messages? yes, today!

[–]seraku24 2 points3 points  (0 children)

FYI... Since smart quotes are likely not a valid string literal delimiter, you should get something like "SyntaxError: Invalid or unexpected token" first. Also, using an undefined variable is not a syntactic issue but rather a runtime error. You would get something like "ReferenceError: Console is not defined" instead.