As now most of the web application frameworks uses the modules so lets have a quick introduction what exactly is a module.
What is Module?:
Someone said- Good authors divide their books into chapters and sections; good programmers divide their programs into modules.
- Modules are highly self-contained with distinct functionality, allowing them to be shuffled, removed, or added as necessary, without disrupting the system as a whole
- It is an object or collection of objects which can contain lots of logic inside it usually defined in its own file or a separate file.
For code implementations please visit to below links-