JavaScript Design Patterns : Module Pattern

The module pattern is a design pattern that greatly helps to create a clean JavaScript code base. Instead of files full of random intertwined functions that call in each other in a spaghetti code fashion, the module pattern pushes us to group common functionality(functions and variables) together. By doing this we use the power of JavaScript closures to have private […]