You Don't Know JS: Scope & Closures

by Kyle Simpson

Programming

Book Details

Book Title

You Don't Know JS: Scope & Closures

Author

Kyle Simpson

Publisher

O'Reilly Media

Publication Date

2014

ISBN

9781449335588

Number of Pages

98

Language

English

Format

PDF

File Size

6MB

Subject

Advanced Web Development

Table of Contents

  • Cover
  • Table of Contents
  • Foreword
  • Preface
  • Chapter 1. What Is Scope?
  • Compiler Theory
  • Understanding Scope
  • Nested Scope
  • Errors
  • Review
  • Chapter 2. Lexical Scope
  • Lex-time
  • Cheating Lexical
  • Review
  • Chapter 3. Function Versus Block Scope
  • Scope From Functions
  • Hiding in Plain Scope
  • Functions as Scopes
  • Blocks as Scopes
  • Review
  • Chapter 4. Hoisting
  • Chicken or the Egg?
  • The Compiler Strikes Again
  • Functions First
  • Review
  • Chapter 5. Scope Closure
  • Enlightenment
  • Nitty Gritty
  • Now I Can See
  • Loops and Closure
  • Modules
  • Review
  • Appendix A. Dynamic Scope
  • Appendix B. Polyfilling Block Scope
  • Traceur
  • Implicit Versus Explicit Blocks
  • Performance
  • Appendix C. Lexical this
  • Appendix D. Acknowledgments
  • About the Author