//a.js
var x = 1;
function up(){
x++;
}
module.exports.x = x;
module.exports.up = up;
//b.js
var vA = require('./a');
a.up();
console.log(a.x)
//c.js
var vA = require('./a');
a.up();
console.log(a.x)
How to change the x value in a in b.js and c.js in the above three files and share the value of x