Errors and comments
Read · 1 of 5
Node tells you what went wrong
When something's wrong, Node stops and shows the file, the line number, the line itself with a ^ under the problem, and the kind of error.
Common beginner mistakes: a missing quote or bracket, or wrong capitals (JavaScript cares: console.log, not Console.log).
1hello.js:22console.log("Hi"3 ^^^^4SyntaxError: missing ) after argument list