JavaScript Module Pattern

The Javascript module is a great design pattern for Javascript coders. It makes code simple to read and easy to use. It allows you to hide private methods inside your module and expose public properties that you want to expose when you use the Revealing Module Pattern. More importantly you can say bye bye to prototype bloat hell…

Here are a number of useful resources and links for building Javascript modules:

  1. How Do You Structure JavaScript? The Module Pattern Edition
  2. JavaScript module pattern with example
  3. Mastering the Module Pattern

Published by

Ben Powell

Ben Powell was born in Wales and after living in several European countries is now resident in Germany. He is a frequent blogger, software developer and a social techie.

Feel free to leave constructive comments that aren't spam!