Line At A Time
Lesson 1: Hello, World!
Hello, World! Make the computer say hello, every programmer's first program.
1console.log("Hello, world!");
Terminal
$ node main.js
Hello, world!
Every line, explained
console.log("Hello, world!");
console.log(...) prints whatever is inside the round brackets to the terminal, then moves to a new line. console is the terminal itself, log is the tool that writes to it, joined with a dot. The text goes inside quotes: "Hello, world!" is a string, a piece of text.