Articles → Node.js → Create your first node.js program

Create your first node.js program






What is Node.js?





Steps of creating your first program













Create a script file and add JavaScript code in it.




console.log("Hello, World!")





Open Node.js command prompt




Picture showing the node.js command prompt option in the context menu

Click to Enlarge


Run the program using ‘Node’ command




Node c:\temp\Main.js


Picture showing executing your first program in node.js

Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, December 5, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250