Modules
A module is just like a box containing some code dedicated to doing one thing well. We label the box with something like http.js. We combine these modules with one another to create more complex structures.
ES6 modules provide organization at a language level. Modules export things that can be imported in other modules.
Why use modules?
- Reuse existing code.
- Organize your code.
- Expose only what will be used.
Children
Backlinks