Buy more & save more this holiday
$23.95 with 21 percent savings
Print List Price: $30.20

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.

You've subscribed to ! We will preorder your items within 24 hours of when they become available. When new books are released, we'll charge your default payment method for the lowest price available during the pre-order period.
Update your device or payment method, cancel individual pre-orders or your subscription at
Your Memberships & Subscriptions
Kindle app logo image

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.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

You Don't Know JS Yet: Scope & Closures Kindle Edition


Are you looking for a better way to deeply learn the fundamentals of JavaScript? Look no further!

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.

Shop this series

 See full series
There are 3 books in this series.
This option includes 3 books.

Customers also bought or read

Loading...

Editorial Reviews

From the Back Cover

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

Product details

About the author

Follow authors to get new release updates, plus improved recommendations.
Kyle Simpson
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

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

4.6 out of 5 stars
121 global ratings

Top reviews from the United States

  • Reviewed in the United States on April 10, 2020
    Format: KindleVerified Purchase
    Been 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.
    4 people found this helpful
    Report
  • Reviewed in the United States on July 28, 2020
    Format: KindleVerified Purchase
    Short 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.
    One person found this helpful
    Report
  • Reviewed in the United States on January 11, 2021
    Format: PaperbackVerified Purchase
    very thin content - the book from o'reilly even if out of date is much more useful
    One person found this helpful
    Report

Top reviews from other countries

  • David
    5.0 out of 5 stars Un gran libro para leer con tranquilidad y tomar notas.
    Reviewed in Spain on March 31, 2022
    Format: PaperbackVerified Purchase
    Gran libro si quieres ampliar tus conocimientos en JavaScript.
  • Josh
    5.0 out of 5 stars Book qualty was good
    Reviewed in the United Kingdom on February 19, 2024
    Format: PaperbackVerified Purchase
    Book looked new
  • Paul
    5.0 out of 5 stars great book!
    Reviewed in Germany on January 12, 2021
    Format: PaperbackVerified Purchase
    if you want to learn js in detail buy this book
  • Sara
    5.0 out of 5 stars Conforme à l'annonce,
    Reviewed in France on August 8, 2024
    Format: PaperbackVerified Purchase
    rien à redire !
  • Niall
    5.0 out of 5 stars Really understand JavaScript finally
    Reviewed in the United Kingdom on April 9, 2020
    Format: PaperbackVerified Purchase
    It'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!

Report an issue


Does this item contain inappropriate content?
Do you believe that this item violates a copyright?
Does this item contain quality or formatting issues?