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 worldNow we can move on to bigger things.