


If you observe the above result, we tried to print a message in node.js shell by typing the message “ Hello World”. Generally, when we install a node.js in our machine, we will get a Node.js command-line interface and other required components.Īfter opening Node.js command-line interface, type console.log(“Hello World”) command in the console and click on the enter button that will show the output like as shown below.

To open a node.js command-line interface, search for node.js in windows and click on Node.js desktop app like as shown below. Node.js Hello World Console Applicationīy using node.js command-line interface, we can create console applications. Here, we will learn both ways to create node.js simple hello world application with examples. In node.js, we can create either console or web applications based on our requirements. Now, we will learn how to create simple node.js hello world application in different ways using node.js command-line interface. In previous node.js chapters, we learned what is node.js? and how to setup node.js development environment.
