A module is a way to create a group of related variables, functions, classes and interfaces etc. It executes in the local scope, not in the global scope. It is of two types: Internal Module and External Module.
The Internal Module is used for the logical grouping of the classes, interfaces and functions, and variables into a single unit.
The External Module is used when applications consist of hundreds of files. It specifies load dependencies between the multiple external .js files.