Nodejs Hello, World!

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

Type “node” to begin.

node-hello-world-1

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:

nodejs-hello-world-2

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.

Questions