running node js script code example
Example 1: run node js
node name_app.js
Example 2: javascript running at node
const inNode = new Function('try{return this===global;}catch(err){return false;}')();
node name_app.js
const inNode = new Function('try{return this===global;}catch(err){return false;}')();