You Don’t Know JS: Scopes & Closures

Siva
TIL JS
Published in
4 min readFeb 19, 2017

--

Hello people, Welcome to the next post of TIL JS. In the last post we discussed about how important it is to read technical books and we learnt about the JavaScript: Good parts book. Today we will learn about another book ‘You Don’t know JS’ by Kyle Simpson. This is a series of books containing 7 titles. One of the books in this series is ‘Scopes & Closures’ and we are going to look about it here.

Before going into this, this is an open source book and it is available in github. You can read it from here: https://github.com/getify/You-Dont-Know-JS

The good thing about this series of books is, the author has clearly segregated the topics in JavaScript and explained those topics clearly and deeply. Also the author explains about ES6 features related to the core concept that he is discussing. I find this very helpful, because most of the famous technical books in JavaScript deal only ES3 or ES5. Though you can start from any of the books in the series, I started with scopes and closures because I felt this is the basic building block upon which much more complex topics can be constructed.

What is Scope?

The book consists of 5 chapters and the first chapter begins with the basic question of ‘What is scope?’. The author begins with discussing about the compiler theory and the meaning of scope and how…

--

--

Siva
TIL JS

JavaScript lover. Full stack developer. Failed Entrepereneur.