December 8, 2022

WeAnswer

The complete guide to the beginners as well as to the experienced Web Developers

How to execute NODE JS

Execute NODE JS files via below steps.
– Create server.js file in directory
– Put code inside js file
console.log(“ok”);
 – Open directory from command prompt
 cd C:\xampp\htdocs\nodejs
– Execute JS file from node
node server.js
Get return value in command prompt whatever in console.log()