first.js
var a='this is first.js'
module.exports=a;
second.js
var a=require('./first');
console.log(a);
output:this is first.js
if i change the content of 'a' in second.js will that reflect in first.js too? if not and if possible how to do it?
first.js
var a='this is first.js'
module.export=a;
second.js
var a=require('./first');
console.log(a);