Learn more
These promotions will be applied to this item:
Some promotions may be combined; others are not eligible to be combined with other offers. For details, please see the Terms & Conditions associated with these promotions.
Your Memberships & Subscriptions

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
You Don't Know JS Yet: Scope & Closures Kindle Edition
The foundation of all programs is the organization of its variables and functions into different nested scopes. Yet, most developers haven't deeply contemplated how and why these decisions are made and the impacts on code maintainability.
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.
"Scope & Closures" examines all aspects of lexical scope, then builds on these principles to leverage the power of closure, and finally digs into the module pattern for better program structure.
- LanguageEnglish
- Publication dateMarch 17, 2020
- File size2.4 MB
Shop this series
See full series- Kindle Price:$52.89-By placing your order, you're purchasing a license to the content and you agree to the Kindle Store Terms of Use.
Shop this series
This option includes 3 books.
Customers also bought or read
- JavaScript: The Definitive Guide: Master the World's Most-Used Programming LanguageKindle Edition$32.58$32.58
- The Road to React: The React.js 19 with Hooks in JavaScript Book (2025 Edition)Kindle Edition$29.99$29.99
- Learning JavaScript Design Patterns: A JavaScript and React Developer's GuideKindle Edition$27.37$27.37
- Learning TypeScript: Enhance Your Web Development Skills Using Type-Safe JavaScriptKindle Edition$35.14$35.14
- Code Complete (Developer Best Practices)#1 Best SellerClient-Server Networking SystemsKindle Edition$35.05$35.05
- Patterns of Enterprise Application Architecture (Addison-Wesley Signature Series (Fowler))Kindle Edition$53.59$53.59
- Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series)Kindle Edition$28.97$28.97
- Go Programming Language, The (Addison-Wesley Professional Computing Series)Kindle Edition$26.88$26.88
Customers who viewed this item also viewed
Editorial Reviews
From the Back Cover
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
Product details
- ASIN : B08634PZ3N
- Publisher : GetiPub & Leanpub
- Accessibility : Learn more
- Publication date : March 17, 2020
- Edition : 2nd
- Language : English
- File size : 2.4 MB
- Simultaneous device usage : Unlimited
- Screen Reader : Supported
- Enhanced typesetting : Enabled
- X-Ray : Not Enabled
- Word Wise : Not Enabled
- Print length : 281 pages
- ISBN-13 : 978-1647862268
- Page Flip : Enabled
- Book 2 of 3 : You Don't Know JS Yet
- Best Sellers Rank: #820,181 in Kindle Store (See Top 100 in Kindle Store)
- #67 in JavaScript Programming (Books)
- #105 in JavaScript Programming (Kindle Store)
- #134 in Web Programming
- Customer Reviews:
About the author

Kyle Simpson is a web-oriented software engineer, widely acclaimed for his "You Don't Know JS" book series and nearly 1M hours viewed of his online courses. Kyle's superpower is asking better questions, who deeply believes in maximally using the minimally-necessary tools for any task. As a "human-centric technologist", he's passionate about bringing humans and technology together, evolving engineering organizations towards solving the right problems, in simpler ways. Kyle will always fight for the people behind the pixels.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on April 10, 2020Format: KindleVerified PurchaseBeen watching and reading Kyle's courses and books for a long time. It brought me from "Why is it not working right????" to a level of deep understanding of concepts like Closures, The Module Pattern etc...
If you want to actually understand how scope and closure works, this book is a must.
- Reviewed in the United States on July 28, 2020Format: KindleVerified PurchaseShort of the ecma spec, there aren't a lot of deep dives into the gritty of JS out there. While this series lays out all the info it lacks the thrust of a lesson plan. Details appear stacked on top of each other. The effect is like assembling a jigsaw puzzle by pulling one piece from the box at a time. Book may serve as good reference but fails to operate as primary source for learning.
- Reviewed in the United States on January 11, 2021Format: PaperbackVerified Purchasevery thin content - the book from o'reilly even if out of date is much more useful
Top reviews from other countries
-
DavidReviewed in Spain on March 31, 2022
5.0 out of 5 stars Un gran libro para leer con tranquilidad y tomar notas.
Format: PaperbackVerified PurchaseGran libro si quieres ampliar tus conocimientos en JavaScript.
- JoshReviewed in the United Kingdom on February 19, 2024
5.0 out of 5 stars Book qualty was good
Format: PaperbackVerified PurchaseBook looked new
- PaulReviewed in Germany on January 12, 2021
5.0 out of 5 stars great book!
Format: PaperbackVerified Purchaseif you want to learn js in detail buy this book
-
SaraReviewed in France on August 8, 2024
5.0 out of 5 stars Conforme à l'annonce,
Format: PaperbackVerified Purchaserien à redire !
- NiallReviewed in the United Kingdom on April 9, 2020
5.0 out of 5 stars Really understand JavaScript finally
Format: PaperbackVerified PurchaseIt's hard to find detailed content on JavaScript on the why and how things actually happen. When you read this book you actually understand the mechanisms which can instantly be applied to how you think about and solve problems. This should be onboarding material for any JS developer because it is packed full of detailed, digestible content that will improve even the most senior engineer. I found myself learning how to communicate and articulate the hows of JS a lot better after reading the book (I'm a lead JS engineer). BUY THIS NOW!