Print "Hello world" to the Console Using Node Js

In this tutorial, you are going to write your first program in Node. We will be printing "Hello world" text to the Console.

Step1: Create a new directory in your system with the name "NodeTutorial" or any other you would like to create.

Step 2: 
Open Visual Studio Code and open the newly created "NodeTutorial" folder.


Open Folder for your Node Program





Step 3: Create a new Js file "helloworld.js" in the folder "NodeTutorial". 

Js File



Step 4: Write your first program in Node - 
console.log('Hello World') 


Console Log in Node



Step 5: Open a new visual studio code terminal from the menu tab at the top or use the shortcut command ctrl+shift+~





Step 6: Type the command "node helloworld.js" in the terminal and press enter. 
             
 





I hope you guys are able to run your first basic program in the terminal. If you face any issue comment down. I will try to solve your issue 😊