Sep 26, 2018

[HDGEM] How to run a javascript file in Node.js

  1. download nodejs to your system.
  2. open a notepad write js command "console.log('Hello World');"
  3. save the file as hello.js preferably same location as nodejs.
  4. open command prompt navigate to the location where the nodejs is located. ...
  5. and run the command from the location like node hello.js.

Posted By Blogger to HDGEM at 4/21/2017 08:28:00 AM