byexample

Hello World

Our first program will print the classic “hello world” message. Here’s the full program.

console.log("hello world");

To run the program, put the code in hello.js and run it with node.

$ node hello.js
hello world

Now we can move on to bigger things.