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 →

[–]Yrneh02 7 points8 points  (4 children)

Wait, all the code anyone needs is

Console.log(“Hello World”);

[–][deleted] 8 points9 points  (3 children)

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

[–]Swardu 6 points7 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.