GLOSSARY · A WORD, UNPACKED
module
a file or unit of code with private names and an explicit public interface for other code.
A little more detail
ES modules expose values through export and use values through import. CommonJS uses require and module.exports in compatible environments. Keeping module boundaries explicit helps readers find dependencies without spreading every helper into global scope.
See it in practice
These lessons pair the idea with examples you can change and run.