Scope & Closures
Introduction
1.
Chapter 1: What is Scope?
1.1.
Compiler Theory
1.2.
Understanding Scope
1.3.
Nested Scope
1.4.
Errors
1.5.
Review (TL;DR)
2.
Chapter 2: Lexical Scope
2.1.
Lex-time
2.2.
Cheating Lexical
2.3.
Review (TL;DR)
3.
Chapter 3: Function vs. Block Scope
3.1.
Scope From Functions
3.2.
Hiding In Plain Scope
3.3.
Functions As Scopes
3.4.
Blocks As Scopes
3.5.
Review (TL;DR)
4.
Chapter 4: Hoisting
4.1.
Chicken Or The Egg?
4.2.
The Compiler Strikes Again
4.3.
Functions First
4.4.
Review (TL;DR)
5.
Chapter 5: Scope Closures
5.1.
Enlightenment
5.2.
Nitty Gritty
5.3.
Now I Can See
5.4.
Loops + Closure
5.5.
Modules
5.6.
Review (TL;DR)
6.
Appendix A: Dynamic Scope
7.
Appendix B: Polyfilling Block Scope
8.
Appendix C: Lexical-this
9.
Appendix D: Acknowledgments
Powered by
GitBook
A
A
Serif
Sans
White
Sepia
Night
Share on Twitter
Share on Google
Share on Facebook
Share on Weibo
Share on Instapaper
Scope & Closures
You Don't Know JS: Scope & Closures
Purchase digital/print copy from O'Reilly