You Don't Know JS: Scope & Closures

You Don't Know JS: Scope & Closures

Kyle Simpson2014
No matter how much experience you have with JavaScript, odds are you don’t fully understand the language. This concise yet in-depth guide takes you inside scope and closures, two core concepts you need to know to become a more efficient and effective JavaScript programmer. You’ll learn how and why they work, and how an understanding of closures can be a powerful part of your development skillset. Like other books in the "You Don’t Know JS" series, Scope and Closures dives into trickier parts of the language that many JavaScript programmers simply avoid. Armed with this knowledge, you can achieve true JavaScript mastery. Learn about scope, a set of rules to help JavaScript engines locate variables in your code Go deeper into nested scope, a series of containers for variables and functions Explore function- and block-based scope, “hoisting”, and the patterns and benefits of scope-based hiding Discover how to use closures for synchronous and asynchronous tasks, including the creation of JavaScript libraries
Sign up to use

Reviews

Photo of Kehinde Adeleke
Kehinde Adeleke@adeleke5140
5 stars
Jun 27, 2023
Photo of Kehinde Adeleke
Kehinde Adeleke@adeleke5140
5 stars
Jun 27, 2023
Photo of Phu Le Ngo
Phu Le Ngo@phulengo
5 stars
Feb 20, 2023
Photo of tiff
tiff@tiffw
3 stars
Dec 28, 2022
Photo of Nedu
Nedu@nedu
4 stars
Apr 8, 2022
Photo of Brent Nef
Brent Nef@n3f
3 stars
Sep 30, 2021
Photo of Arihant Verma
Arihant Verma@arihant
5 stars
May 13, 2024
Photo of Daniel Voicu
Daniel Voicu@danielvoicu
5 stars
Apr 2, 2024
Photo of Josh Kuiros
Josh Kuiros@joshkuiros
5 stars
Jan 30, 2024
Photo of Josh Kuiros
Josh Kuiros@joshkuiros
5 stars
Jan 30, 2024
Photo of Mitch Stewart
Mitch Stewart@mitchbones
5 stars
Jul 6, 2023
Photo of Róbert Istók
Róbert Istók@robertistok
5 stars
Mar 19, 2023
Photo of Phu Le Ngo
Phu Le Ngo@phulengo
5 stars
Feb 20, 2023
Photo of Alex Fong
Alex Fong@apfong
5 stars
Jan 26, 2023
Photo of James Miller
James Miller@severian
3 stars
Jan 20, 2023
Photo of tiff
tiff@tiffw
5 stars
Dec 28, 2022
Photo of Hatem Abdelmowgoud
Hatem Abdelmowgoud @iammowgoud
5 stars
Aug 31, 2022
Photo of Hatem Abdelmowgoud
Hatem Abdelmowgoud @iammowgoud
5 stars
Aug 31, 2022
Photo of Rory O'K
Rory O'K@ror
4 stars
Aug 31, 2022
Photo of Guillermo Rodas
Guillermo Rodas@glrodasz
5 stars
Aug 26, 2022
Photo of Meelahn
Meelahn@iacovibus
5 stars
Aug 24, 2022
Photo of Meelahn
Meelahn@iacovibus
4 stars
Aug 24, 2022
Photo of Engin Arslan
Engin Arslan@enginx
4 stars
May 15, 2022
Photo of Jason Long
Jason Long@jasonlong
4 stars
Dec 22, 2021