Learn JavaScript

Lesson 8 of 9 · Scope, Hoisting and Closures

Module 6 · Scope, Hoisting and Closures

Cheat Sheet: Scope, Hoisting and Closures on One Page

ProReading

This page is the module on one screen, for the moment you need a rule fast. That moment comes in a code review, before an interview, or halfway through a judged problem. It adds nothing new. Every line comes from lessons 01 to 06, and each table names the lesson that explains it.

Checking what this lesson needs for you…

What is inside Cheat Sheet: Scope, Hoisting and Closures on One Page

  1. Every declaration, in one table
  2. The lookup, the two passes and the dead zone
  3. The loop with var against let
  4. The closure patterns in one line each
  5. Closure, class or module
  6. The bug gallery in one line each
  7. Two programs that use the page

Module test

Ten questions on this module. Pass at 70%, and you can take it as many times as you like.

Take the module test