Check out a free preview of the full JavaScript: From Fundamentals to Functional JS course:
The "JavaScript Module Pattern" Lesson is part of the full, JavaScript: From Fundamentals to Functional JS course featured in this preview video. Here's what you'd learn in this lesson:

The Module Pattern is a way to emulate classes in other programming languages. You use the Module pattern to define public/private methods and to encapsulate functionality and make more portable code.

Get Unlimited Access Now