Egghead Instructor Jeremy Robertson

Jeremy Robertson

Jeremy is a programmer that prefers talking about code to talking about himself. He just really likes coding and teaching about coding.



Support Jeremy's Free Lessons
become a member today

Browse Jeremy Robertson's lessons.

showing 3 lessons...

Double && (and) Double || (or) = Double Functionality

The Factory Pattern for Javascript Modules

The Module Pattern in Javascript (aka Immediately-Invoked Function Expression aka IIFE)

js tutorial about Double && (and) Double || (or) = Double Functionality

Double && (and) Double || (or) = Double Functionality

3:24 js

The and (&&) and or (||) operators in javascript do not function like traditional logical operators. We can use them to our advantage to eliminate some boilerplate code when writing conditional expressions.

Additional jsbin: https://jsbin.com/qipina/edit?js,output

js tutorial about The Factory Pattern for Javascript Modules

The Factory Pattern for Javascript Modules

3:15 js

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.

js tutorial about The Module Pattern in Javascript (aka Immediately-Invoked Function Expression aka IIFE)

The Module Pattern in Javascript (aka Immediately-Invoked Function Expression aka IIFE)

5:05 js

Javascript modules are a design pattern that allow you to encapsulate your code into smaller self managing pieces. They help you separate your code, protect your variables, and provide an easy way to expose only the parts of your component that you want to be exposed.

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