Is it possible to to have this return an output ?
hello.js
var y = 1;
console.log(x);
console.log(y);
main.js
var x = 42;
var magic = somehowInclude('hello.js');
And when you run main.js with node it prints 42 and 1
Is it to possible to do this without require and exports ?