I am having issues including files to execute in my NodeJs project.
I have two files in the same directory:
a.js
var test = \"He
You are misunderstanding what should be happening. The variables defined in your module are not shared. NodeJS scopes them.
You have to return it with module.exports.
module.exports
module.exports = "Hello World";
b.js
var test = require('./a.js'); console.log(test);