Import/export syntax is the ES module mechanism for organizing JavaScript across files. Modules keep their own scope and use explicit export and import keywords to share reusable functionality. section 3.4
Explain these points when discussing the feature:
- ES modules became the official JavaScript standard in ES2015. section 3.4
- Explicit module boundaries improve code organization, reduce global-scope pollution, and support maintainable large codebases. section 3.4
- Contrast import/export with CommonJS, AMD, UMD, and IIFE patterns when discussing legacy module formats. section 3.4
Interview framing
When asked what ES modules are, describe them as the standard for sharing JavaScript code across files through explicit imports and exports. Follow with their benefits for separation of concerns and maintainability, then compare them with require and module.exports from CommonJS. section 3.4





