You Don't Know JS unravels the complex and often misunderstood intricacies of JavaScript, inviting readers on a deep dive into the language's true capabilities. Each insightful installment challenges common assumptions and reveals the foundational concepts that even seasoned developers overlook. With a conversational tone, the author, Kyle Simpson, transforms abstract theories into relatable ideas, making the seemingly arcane accessible. Prepare to rethink everything you thought you knew about closures, scope, and asynchronous programming. Are you ready to elevate your JavaScript mastery and unlock the full potential of the web?
By Kyle Simpson
Published: 2014
"In JavaScript, the only way to learn is to learn."
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
Dive into captivating book discussions with our expert hosts
Kyle Simpson is a prominent software engineer, educator, and author known for his expertise in web development and JavaScript. With a passion for teaching, he has created a multitude of resources, including books and online courses, that aim to demystify complex programming concepts. Simpson is the founder of the popular educational platform, "Getify," which offers in-depth training on JavaScript and related technologies. His engaging writing style and hands-on approach have garnered him a dedicated following in the developer community. When he's not coding or teaching, Kyle enjoys exploring new technologies and advocating for best practices in web development.
Key information about the book.
Support local bookstores: BookShop gives a portion of each sale to independent bookshops!
Alex Lieberman is the co-founder and executive chairman of Morning Brew, a media company that delivers engaging business news. Under his leadership, Morning Brew has grown to reach millions of subscribers, becoming a significant player in modern business journalism. Lieberman is also known for his insightful commentary on entrepreneurship and media trends. His work has significantly influenced the way business news is consumed by younger audiences. Beyond Morning Brew, Lieberman frequently writes and speaks about the intersection of media and technology, further cementing his role as a thought leader in the industry.
View CollectionChris Dixon is a notable venture capitalist and technology entrepreneur, best known for his influential role as a general partner at Andreessen Horowitz, where he leads investments in cryptocurrency and blockchain technology. Before joining the firm, Dixon co-founded two startups: SiteAdvisor, a web security company acquired by McAfee, and Hunch, a recommendation engine acquired by eBay. In addition to his investment career, Dixon is a prolific writer and thought leader on technology and innovation, contributing insightful essays and articles to various platforms such as his personal blog and Medium. His writings often explore the future of technology, the internet, and the impact of blockchain, making significant contributions to contemporary tech literature. Dixon's work has earned him recognition as a visionary in both the tech and literary worlds.
View CollectionDavid Heinemeier Hansson, also known as DHH, is a Danish programmer, entrepreneur, and author, best known as the creator of Ruby on Rails, a popular web application framework. Heinemeier Hansson is also a partner at Basecamp, a project management and collaboration software company he co-founded. His contributions to software development have earned him widespread recognition, with Ruby on Rails being used by thousands of developers and companies worldwide. Heinemeier Hansson is also a vocal advocate for remote work, simplicity in business, and sustainable work practices, ideas he explores in his bestselling books Rework and It Doesn’t Have to Be Crazy at Work. In addition to his work in tech, he is an accomplished race car driver, having competed in the 24 Hours of Le Mans. Heinemeier Hansson’s approach to work-life balance and entrepreneurship has made him a thought leader in the tech community, where he continues to challenge traditional business practices and advocate for more human-centered approaches to work
View CollectionBret Victor is a renowned American interface designer and computer scientist celebrated for his innovative contributions to interactive design and human-computer interaction. He is best known for creating dynamic, explorable explanations, which have significantly influenced the way educational content is presented and understood. Victor's seminal work, "Inventing on Principle," advocates for the integration of immediate feedback in creative processes, inspiring a new wave of interactive programming environments. As a former member of the Apple Human Interface team, he played a pivotal role in shaping modern user interfaces. Through his organization, Dynamicland, Victor continues to explore and expand the boundaries of immersive, collaborative computing environments.
View CollectionBiz Stone is an American entrepreneur, co-founder of Twitter, and a key figure in the development of social media. Stone helped launch Twitter in 2006, transforming the way people communicate and share information globally. He has also co-founded other companies, including Xanga, Blogger, and Medium, and is involved in various philanthropic efforts through The Biz and Livia Stone Foundation. Stone is known for his creative thinking and his belief in the power of technology to create positive change in the world. His work has left a lasting impact on digital communication and media innovation.
View CollectionColeen Baik is an American designer, artist, and entrepreneur, known for her work in the tech industry, including as a founding team member of Twitter. Baik played a key role in shaping the user experience and design of Twitter in its early days, contributing to its iconic interface. She is also the founder of Baik Art, a multidisciplinary art studio that blends technology and visual art. Baik is passionate about using design to create meaningful and user-centered digital experiences, and she frequently speaks on topics related to innovation, design, and creativity. Her work has made her a prominent figure in the intersection of tech and design.
View CollectionDrew Houston is an accomplished American entrepreneur best known for co-founding Dropbox, a widely-used cloud storage service, in 2007. As the CEO, he has led the company to serve millions of users worldwide and become a key player in the tech industry. Although not primarily known for literature, Houston has shared his entrepreneurial insights and experiences through various interviews and public speaking engagements, offering valuable lessons to aspiring business leaders. His work has significantly influenced the way people and organizations manage and share digital content. Houston's innovative vision continues to shape the future of cloud computing and digital collaboration.
View CollectionAndrew Chen is a venture capitalist, entrepreneur, and thought leader in growth marketing, currently serving as a general partner at Andreessen Horowitz. Chen is known for his expertise in network effects, viral growth strategies, and marketplace dynamics, making him a sought-after advisor for startups looking to scale. Prior to joining Andreessen Horowitz, he worked in leadership roles at Uber, helping to grow the ride-sharing platform’s user base and develop key growth strategies. Chen is also a prolific writer, sharing his insights on growth, technology, and startups through his popular blog and newsletter, which has attracted a loyal following in the tech community. His work has helped shape how many startups approach user acquisition, retention, and product-market fit. As a venture capitalist, Chen focuses on early-stage companies in the consumer internet, SaaS, and marketplace sectors, and he has been involved in funding and advising several successful startups. His insights on technology and growth continue to influence both founders and investors alike.
View CollectionBrad Feld is a prominent American entrepreneur, venture capitalist, and author known for his influential work in the startup ecosystem. Co-founder of the Foundry Group, he has played a pivotal role in funding and mentoring early-stage technology companies. Feld is also a key figure behind the Techstars accelerator program, which has helped launch numerous successful startups. As an author, he has penned several essential books on entrepreneurship and venture capital, including "Venture Deals" and "Startup Communities," which provide invaluable insights for aspiring entrepreneurs and investors. His writings and active blogging have cemented his reputation as a thought leader in the tech and startup communities.
View CollectionElon Musk is an influential entrepreneur and innovator known for founding and leading several groundbreaking companies, including Tesla, SpaceX, Neuralink, and The Boring Company. He has played a pivotal role in advancing electric vehicles, space exploration, and renewable energy. Musk's vision extends to colonizing Mars and reducing the risk of human extinction through space travel. In addition to his technological contributions, he has co-authored the book "Spacex: Making Commercial Spaceflight a Reality," providing insights into his ambitious projects and vision for the future. Musk's relentless pursuit of innovation continues to shape the trajectory of multiple industries.
View CollectionMax Levchin is a Ukrainian-American computer scientist and entrepreneur, best known as one of the co-founders of PayPal, where he served as the Chief Technology Officer. He has made significant contributions to the field of digital finance and technology innovation. Levchin also founded the consumer finance company Affirm, which aims to revolutionize the credit industry with transparent lending practices. Additionally, he co-authored several technical papers on computer security and has been a prominent advocate for tech entrepreneurship. His work has not only shaped digital payment systems but also influenced modern approaches to financial technology.
View CollectionDavid Friedberg is an entrepreneur, investor, and founder of The Production Board, a company focused on creating and investing in businesses that aim to solve challenges in food, agriculture, and climate change. Friedberg is also the founder of Climate Corporation, a company that uses data science to help farmers manage weather risk, which was acquired by Monsanto for $1 billion. He is a strong advocate for using technology to address global environmental and food production challenges. Friedberg’s focus on sustainability and innovation has made him a leader in the intersection of agriculture, climate science, and technology.
View CollectionJeff Atwood is an American software developer, writer, and co-founder of Stack Overflow, the largest online community for developers to share knowledge and collaborate on coding problems. Atwood is also known for his influential blog Coding Horror, where he writes about programming, technology, and software development practices. His work on Stack Overflow has revolutionized the way developers learn and share information, fostering a collaborative, open-source culture within the tech community. Atwood’s contributions to software development have made him a key figure in the tech industry, particularly in developer education and open knowledge sharing.
View CollectionBrian Armstrong is a renowned entrepreneur and author best known for co-founding and leading Coinbase, a major cryptocurrency exchange. His literary contributions include insightful writings on the future of digital currencies and blockchain technology. Armstrong's work has been pivotal in demystifying complex financial systems for a broader audience. Beyond his business acumen, his thought leadership in publications and public speaking engagements has cemented his status as a key voice in the fintech revolution. His dedication to innovation continues to influence the trajectory of global financial systems.
View CollectionDelian Asparouhov is a venture capitalist at Founders Fund and co-founder of Varda Space Industries, a company focused on manufacturing in space. As a prominent figure in the tech and space industries, Asparouhov is known for his investments in innovative startups and his work in advancing space manufacturing technology. He is a strong advocate for pushing the boundaries of technology and has been vocal about the potential of space as the next frontier for industrial production. His work has made him a key player in the emerging space economy.
View CollectionBrett Adcock is an entrepreneur and co-founder of Archer Aviation, an electric vertical takeoff and landing (eVTOL) company focused on revolutionizing urban air mobility. Prior to founding Archer, Adcock co-founded Vettery, a talent marketplace that connects companies with job seekers using data-driven matching technology, which was later acquired by the Adecco Group. At Archer, Adcock is working to build the future of transportation with electric aircraft designed for short-distance flights in urban areas. His vision for the future of air travel has made him a key player in the growing eVTOL and aviation technology industries.
View CollectionGarry Tan is a prominent entrepreneur and investor, best known for his influential role in the technology and startup ecosystem. Co-founder of Initialized Capital, Tan has played a pivotal role in funding and mentoring numerous successful startups. His contributions to literature primarily include insightful writings on technology, entrepreneurship, and venture capital, which are widely read and respected within the industry. Tan's blog posts and essays offer valuable guidance and have inspired many aspiring entrepreneurs. Additionally, his work at Y Combinator, where he previously served as a partner, further underscores his significant impact on the startup community.
View Collection“In JavaScript, the only way to learn is to learn.”
You Don't Know JS: Scope & Closures
By Kyle Simpson
Discover a world of knowledge through our extensive collection of book summaries.