You Don't Know JS Yet: Scope and Closures, 2nd Edition



Book Details
Author | Kyle Simpson |
Publisher | Leanpub |
Published | 2020 |
Edition | 2nd |
Paperback | 279 pages |
Language | English |
ISBN-13 | 9798621536459 |
ISBN-10 | 8621536455 |
License | Creative Commons Attribution-NonCommercial-NoDerivatives |
Book Description
The worldwide best selling You Don't Know JS book series is back for a 2nd edition: You Don't Know JS Yet. All 6 books are brand new, rewritten to cover all sides of JS for 2020 and beyond. You'll still get in-depth coverage of the core language, applied in useful code organization patterns for your programs. And of course, through Kyle's unique perspective and conversational tone, explore passionate, reasoned debate of the most common questions developers face.
Scope & Closures, the second book in the new edition series, dives deep into how and why to organize variables into different buckets of scope, limiting scope over-exposure and improving code maintainability. On top of lexical scope, closure empowers functions with memory, preserving variables across calls. Modules leverage scope and closures to encapsulate data and behavior.
In Scope & Closures, you'll dig into:
- Nesting lexical scopes with functions and blocks, to limit scope exposure of variables
- Functions remembering variables through closure
- Modules, one of the most important code organization patterns in programming
This book is available under a Creative Commons Attribution-NonCommercial-NoDerivatives license (CC BY-NC-ND), which means that you are free to copy and distribute it, as long as you attribute the source, don't use it commercially, and don't create modified versions.
If you enjoyed the book and would like to support the author, you can purchase a printed copy (hardcover or paperback) from official retailers.