Nodejs Hello, World!

Here’s the quickest way to get Nodejs to do something, the most basic Hello, World app.

Type “node” to begin.


As you can see from the command prompt, we’re now in nodejs. If you’ve used JavaScript in the browser before, it should seem familiar. After all, this is JavaScript but running in the server level instead of in the browser.

Next, type the following:


As you can see from the output, Hello, World! We’ve created our first nodejs app.

Now we can get onto the more interesting projects in our next lessons.