how to initiate node js code example
Example 1: node command
> node
Welcome to Node.js <version>.
>'type in javascript'
Example 2: javascript running at node
const inNode = new Function('try{return this===global;}catch(err){return false;}')();
> node
Welcome to Node.js <version>.
>'type in javascript'
const inNode = new Function('try{return this===global;}catch(err){return false;}')();