I was planning to post a write up on closures in javascript but it made sense to first introduce you to concept of lexical scoping (or static scoping). In JavaScript, functions have lexical scope. This means that functions create their environment (scope) Read More...