Closures

  • A function enclosed within another function
    • has access to all of the local variables of the enclosing function