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




  1. Create a script file and add JavaScript code in it.
  2. Open Node.js command prompt.
  3. Run the program using ‘Node’ command.



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