What is the difference between modules and traditional scripts in terms of scope?
Modules and traditional scripts differ fundamentally in scope behavior: 1) Modules have their own scope, completely isolated from other modules and global scope, 2) Traditional scripts share the global scope, potentially causing naming conflicts, 3) Variables declared in modules don't automatically become properties of the global object, 4) Top-level 'this' in modules is undefined, while in scripts it refers to the global object, 5) Modules require explicit exports to share values, scripts can inadvertently leak globals, 6) Modules use strict mode by default, scripts don't, 7) This scoping difference makes modules more predictable and maintainable.