ES6 variable import by reference or copy
ES6 import/exports are actually bindings (references). As the value of x
in original file var.js
changes, it's reflected in another file too.
Reference: http://2ality.com/2015/07/es6-module-exports.html
ES6 import/exports are actually bindings (references). As the value of x
in original file var.js
changes, it's reflected in another file too.
Reference: http://2ality.com/2015/07/es6-module-exports.html