You Don't Know JS Yet: Scope & Closures - 2nd Edition
Purchase ebook/PDF from Leanpub
- Foreword (by Sarah Drasner)
- Preface
- Chapter 1: What's the Scope?
- Chapter 2: Illustrating Lexical Scope
- Chapter 3: The Scope Chain
- Chapter 4: Around the Global Scope
- Chapter 5: The (Not So) Secret Lifecycle of Variables
- Chapter 6: Limiting Scope Exposure
- Chapter 7: Using Closures
- Chapter 8: The Module Pattern
- Appendix A: Exploring Further
- Appendix B: Practice