getify / You-Dont-Know-JS
A book series (2 published editions) on the JS language.
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing getify/You-Dont-Know-JS in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Summary (README)
PreviewYou Don't Know JS Yet (book series) - 2nd Edition
This is a series of books diving deep into the core mechanisms of the JavaScript language. This is the second edition of the book series:
<a href="https://leanpub.com/ydkjsy-get-started"><img src="get-started/images/cover.png" width="75"></a> <a href="https://leanpub.com/ydkjsy-scope-closures"><img src="scope-closures/images/cover.png" width="75"></a> <a href="https://leanpub.com/ydkjsy-unbooks"><img src="unbooks-cover.png" width="75"></a>
To read more about the motivations and perspective behind this book series, check out the Preface.
If you're looking for the previous first edition books, they can be found here.
Titles
I recommend reading the second edition books in this order:
- Get Started | Buy on Leanpub | Buy on Amazon
- Scope & Closures | Buy on Leanpub | Buy on Amazon
- "The Unbooks" (ebook) | Buy on Leanpub | Buy on Amazon
- Objects & Classes (draft stable)
- Types & Grammar (rough draft)
Sync & Async (canceled)ES.Next & Beyond (canceled)
If you're looking for the previous first edition books, they can be found here.
Publishing
As always, you'll be able to read these books online here entirely for free.
This edition of the books is being self-published through GetiPub publishing. The published books will be made available for sale through normal book retail sources.
If you'd like to contribute financially towards the effort (or any of my other OSS efforts) aside from purchasing the published books, please consider these options:
Contributions
This book series is now complete, and is not open to further contributions.
Thank you to those who've been part of the 11 years journey of this book series.
Thank You To These Wonderful Sponsors
The first two books of the second edition are exclusively sponsored by Frontend Masters.
Frontend Masters is the gold standard for top-of-the-line expert training material in frontend-oriented software development. With over 150 courses on all things frontend, this should be your first and only stop for quality video training on HTML, CSS, JS, and related technologies.
Note: I teach all my workshops exclusively through Frontend Masters. If you like this book content, please check out my video training courses.
I want to extend a warm and deep thanks to Marc Grabanski and the entire Frontend Masters team, not only for their excellent work with the video training platform, but for their unwavering support of me and of the "You Don't Know JS" books!
License & Copyright
The materials herein are all © 2019-2025 Kyle Simpson.
<a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivs 4.0 Unported License</a>.