Illustrating Lexical Scope in JavaScript These are the notes of second chapter of the book “You Don’t Know JS: Scope and Closures”. In this chapter, we will discuss how our program is handled by the JS Engine and how the JS Engine works. Marbles, and Buckets, and Bubbles… Oh My! Let’s say we have marbles…

Read More