Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Erick Luna
    Erick Luna
    21,985 Points

    Did I miss any course before this video? I really don't understand what is he talking about at all.

    Posted July 1, 2019 2:56am by Erick Luna
    Erick Luna
    21,985 Points
    • JavaScript
    • The Module Pattern in JavaScript

    1 Answer

  • Siddharth Pande
    Siddharth Pande
    9,046 Points

    Completely lost in the module pattern video....

    Posted June 30, 2019 1:40pm by Siddharth Pande
    Siddharth Pande
    9,046 Points
    • JavaScript
    • The Module Pattern in JavaScript

    1 Answer

  • jlampstack
    jlampstack
    23,932 Points

    Sub module pattern not working?

    Posted May 4, 2019 2:34am by jlampstack
    jlampstack
    23,932 Points
    • JavaScript
    • The Module Pattern in JavaScript

    0 Answers

  • Ashish S
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Ashish S
    Python Web Development Techdegree Student 938 Points

    What is module pattern?

    Posted March 15, 2019 2:26am by Ashish S
    .a{fill-rule:evenodd;}techdegree
    Ashish S
    Python Web Development Techdegree Student 938 Points
    • JavaScript
    • The Module Pattern in JavaScript

    0 Answers

  • Ashish S
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Ashish S
    Python Web Development Techdegree Student 938 Points

    Help me understand this

    Posted March 15, 2019 2:09am by Ashish S
    .a{fill-rule:evenodd;}techdegree
    Ashish S
    Python Web Development Techdegree Student 938 Points
    • JavaScript
    • The Module Pattern in JavaScript

    0 Answers

  • Blake Simpson
    Blake Simpson
    14,201 Points

    Not too sure what i just watched lol? help!!! new Js Developer!!!!!

    Posted October 27, 2018 8:21pm by Blake Simpson
    Blake Simpson
    14,201 Points
    • JavaScript
    • The Module Pattern in JavaScript

    4 Answers

  • Kjetil-Lennart A. Lorentzen
    Kjetil-Lennart A. Lorentzen
    13,390 Points

    Why doesn't the arrow-function work here

    Posted July 2, 2018 4:08pm by Kjetil-Lennart A. Lorentzen
    Kjetil-Lennart A. Lorentzen
    13,390 Points
    • JavaScript
    • The Module Pattern in JavaScript

    2 Answers

  • osama arshad
    osama arshad
    41 Points

    Is there any video about clousers in tree house ?

    Posted March 12, 2018 11:38am by osama arshad
    osama arshad
    41 Points
    • JavaScript
    • The Module Pattern in JavaScript

    2 Answers

  • Leo Marco Corpuz
    Leo Marco Corpuz
    18,975 Points

    Accessing methods inside the function

    Posted March 4, 2018 9:08pm by Leo Marco Corpuz
    Leo Marco Corpuz
    18,975 Points
    • JavaScript
    • The Module Pattern in JavaScript

    1 Answer

  • Jonathan Kuhl
    Jonathan Kuhl
    26,133 Points

    "Uncaught SyntaxError: Identifier 'exports' has already been declared"

    Posted January 29, 2018 4:39pm by Jonathan Kuhl
    Jonathan Kuhl
    26,133 Points
    • JavaScript
    • The Module Pattern in JavaScript

    1 Answer

  • Olivia Posch
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Olivia Posch
    Front End Web Development Techdegree Graduate 19,720 Points

    I don't undertsand what's wrong with it: Error: Uncaught ReferenceError: _ is not defined

    Posted January 16, 2018 9:59am by Olivia Posch
    .a{fill-rule:evenodd;}techdegree seal-36
    Olivia Posch
    Front End Web Development Techdegree Graduate 19,720 Points
    • JavaScript
    • The Module Pattern in JavaScript

    2 Answers

  • Mateusz Konach
    Mateusz Konach
    330 Points

    Module is overwriting

    Posted July 14, 2017 2:27am by Mateusz Konach
    Mateusz Konach
    330 Points
    • JavaScript
    • The Module Pattern in JavaScript

    1 Answer

  • sukjae lee
    sukjae lee
    5,705 Points

    difference between local references vs prototype

    Posted May 11, 2017 7:41am by sukjae lee
    sukjae lee
    5,705 Points
    • JavaScript
    • The Module Pattern in JavaScript

    0 Answers

  • James Barrett
    James Barrett
    13,253 Points

    A few questions on this workshop

    Posted May 2, 2017 11:13pm by James Barrett
    James Barrett
    13,253 Points
    • JavaScript
    • The Module Pattern in JavaScript

    2 Answers

  • Andrew Bennett
    PLUS
    Andrew Bennett
    Courses Plus Student 3,836 Points

    Bootstrap 4 Module JS

    Posted April 6, 2017 1:28pm by Andrew Bennett
    Andrew Bennett
    Courses Plus Student 3,836 Points
    • JavaScript
    • The Module Pattern in JavaScript

    0 Answers

  • Raphaël Seguin
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Raphaël Seguin
    Full Stack JavaScript v1 Techdegree Graduate 29,228 Points

    Should'n't we NOT declare again the exports object in the loose augmentation pattern example code ?

    Posted February 21, 2017 9:29pm by Raphaël Seguin
    .a{fill-rule:evenodd;}techdegree seal-36
    Raphaël Seguin
    Full Stack JavaScript v1 Techdegree Graduate 29,228 Points
    • JavaScript
    • The Module Pattern in JavaScript

    0 Answers

  • Joseph Frazer
    Joseph Frazer
    5,404 Points

    Confused with UNDERSCORING.

    Posted January 10, 2017 1:11am by Joseph Frazer
    Joseph Frazer
    5,404 Points
    • JavaScript
    • The Module Pattern in JavaScript

    1 Answer

  • Patrick McKinney
    Patrick McKinney
    13,151 Points

    How does importing another JavaScript file/library actually work?

    Posted May 22, 2016 12:15am by Patrick McKinney
    Patrick McKinney
    13,151 Points
    • JavaScript
    • The Module Pattern in JavaScript

    3 Answers

  • tomasliashuk
    tomasliashuk
    8,014 Points

    How those two module patterns are different in practical use?

    Posted March 20, 2016 9:29pm by tomasliashuk
    tomasliashuk
    8,014 Points
    • JavaScript
    • The Module Pattern in JavaScript

    1 Answer

  • Anthony c
    Anthony c
    20,907 Points

    Three steps to modularize?

    Posted December 27, 2015 6:35pm by Anthony c
    Anthony c
    20,907 Points
    • JavaScript
    • The Module Pattern in JavaScript

    2 Answers

  • Anthony c
    Anthony c
    20,907 Points

    Is this out-of-date with ECMS6/2015?

    Posted December 27, 2015 6:17pm by Anthony c
    Anthony c
    20,907 Points
    • JavaScript
    • The Module Pattern in JavaScript

    1 Answer

  • Vadim Zelenin
    Vadim Zelenin
    13,045 Points

    Followed examples don't work for me

    Posted September 20, 2015 7:05pm by Vadim Zelenin
    Vadim Zelenin
    13,045 Points
    • JavaScript
    • The Module Pattern in JavaScript

    4 Answers

  • nazarmel
    PLUS
    nazarmel
    Courses Plus Student 388 Points

    Why does Houston not blink?

    Posted July 24, 2015 8:50am by nazarmel
    nazarmel
    Courses Plus Student 388 Points
    • General Discussion
    • The Module Pattern in JavaScript

    12 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord