b exposed to the globally
1
module.exports.xxx = yyy;
2
global.xxx = yyy; // here there is no window object, window object is a browser object
b exposed to the globally
1
module.exports.xxx = yyy;
2
global.xxx = yyy; // here there is no window object, window object is a browser object