The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

The Factory Pattern for Javascript Modules

The Factory Pattern for Javascript Modules

3:15
Javascript modules are a great way to isolate your code, but they are not very re-usable. If we implement the factory pattern inside of one of our modules we get code re-use without losing the encapsulation benefits of a javascript module.
Watch this lesson now
Avatar
egghead.io

Javascript modules are a great way to isolate your code, but they are not very re-usable. If we implement the factory pattern inside of one of our modules we get code re-use without losing the encapsulation benefits of a javascript module.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?