execute js file using node js code example
Example: javascript running at node
const inNode = new Function('try{return this===global;}catch(err){return false;}')();
const inNode = new Function('try{return this===global;}catch(err){return false;}')();