JavaScript Module
Noun · Development
Definitions
A JavaScript file or unit of code with explicit imports and exports, allowing functionality to be split into reusable, dependency-aware pieces. ES modules are the standardized format in the language, replacing older patterns such as global scripts and CommonJS in many environments.
In plain English: It is a self-contained piece of JavaScript that can share code with other files through imports and exports.
Example: "Move the auth helper into its own JavaScript module so both the client bundle and the worker can import it cleanly."