NOTE: |
---|
Work in progress |
- Foreword
- Preface
- Chapter 1: How Is Scope Determined?
- About This Book
- Compiled vs. Interpreted
- Compiling Code
- Compiler Speak
- Cheating: Run-Time Scope Modifications
- Lexical Scope
- Chapter 2: Illustrating Lexical Scope
- Marbles, and Buckets, and Bubbles... Oh My!
- A Conversation Among Friends
- Nested Scope
- Continue The Conversation
- Chapter 3: The Scope Chain
- "Lookup" Is (Mostly) Conceptual
- Shadowing
- Function Name Scope
- Arrow Functions
- Backing Out
- Chapter 4: Global Scope
- Why Global Scope?
- Where Exactly Is This Global Scope?
- Global This
- Globally Aware
- Chapter 5: Working with Variables
- When Can I Use A Variable?
- Hoisting: Yet Another Metaphor
- Re-declaration?
- Uninitialized Variables (aka, TDZ)
- Finally Initialized
- Chapter 6: Limiting Scope Exposure
- Least Exposure
- Hiding In Plain (Function) Scope
- Scoping With Blocks
- Function Declarations In Blocks
- Blocked Over
- Chapter 7: Closures
- TODO
- Chapter 8: Module Pattern
- TODO
- Appendix A: Exploring Further
- Appendix B: Practice