The Revealing Module Pattern is used by JavaScript developers to keep their codebase clean. It prevents malicious JavaScript manipulation from the browser console. It can be really useful for both performance and security. The pattern can be used to create an interface that will not be accessed outside the scope of a function.
Table of contents
About the window objectPotential issues with the window objectRevealing module patternSort: