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()
More Stories
Configuring Apache for Node.js
Connect MQTT with Node.js
Video streaming using Node.js and HTML5