Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Advanced JavaScript: Senior Mastery
·
Module 2
Execution Context, Scope & the Closure Deep Dive
Anatomy of an Execution Context
Describe the structure of an execution context: lexical environment, variable environment, and 'this' binding.
2
"Understanding Scope Chain and Lexical Environments"
Trace variable resolution through the scope chain via the outer lexical environment reference.
3
Understanding the Temporal Dead Zone in JavaScript
Explain the temporal dead zone for 'let' and 'const' and how their hoisting behavior differs from 'var'.
4
Closures and the [[Environment]] Internal Slot
Explain how closures work in memory by describing what the [[Environment]] internal slot captures and retains.
5
Solving the Loop-Closure Bug
Diagnose and fix the classic loop-closure bug using 'let', IIFE, or 'bind', and explain why each fix works.
6
Memoization with Closures
Implement a general-purpose memoize() function from scratch using closures.
7
Module Pattern and Factory Functions with Closures
Implement the module pattern and factory functions using closures for encapsulation.
8
Partial Application with Closures and `bind`
Implement partial application from scratch using closures and the 'bind' method.
Previous module
JavaScript Engine & Runtime Internals
Next module
Event Loop, Concurrency & Async Internals