Tag: Module Pattern

  • JavaScript Patterns: The Traditional Module Pattern

    The module pattern is an important pattern to learn in JavaScript. We will dive into this pattern in this tutorial. Would you like to help keep this channel going? https://www.patreon.com/allthingsjavascript Access to EVERY course (get 2 months free): https://www.skillshare.com/r/profile/Steven-Hancock/24508 Courses offered on Udemy at a discount: Getting Started: https://www.udemy.com/learn-modern-javascript-getting-started/?couponCode=GETTINGSTARTED2019 Advanced Topics: https://www.udemy.com/learn-modern-javascript-advanced-topics/?couponCode=ADVANCED2019 Mastering Regular Expressions…

  • Modular Javascript #3 – Revealing Module Pattern Javascript Tutorial

    The revealing module pattern allows us to create private variables in a Javascript Module. Here’s a writeup on this pattern: http://addyosmani.com/resources/essentialjsdesignpatterns/book/#revealingmodulepatternjavascript Here’s the code for this video: Here’s video 1 in case you missed it: We write a revealing module pattern by starting with a self-executing anonymous function also known as an IIFE (immediately invoked…