Understanding Design Patterns in JavaScript

added by JavaScript Kicks
10/17/2018 9:01:28 AM

731 Views

A Module is a piece of self-contained code so we can update the Module without affecting the other parts of the code. Modules also allow us to avoid namespace pollution by creating a separate scope for our variables. We can also reuse modules in other projects when they are decoupled from other pieces of code.


0 comments