Variable Scope Chain in JavaScript

Before you start reading this post I recommend you to read Variable Scoping and Hoisting in JavaScript . In this post we will take a look on Scope Chain in JavaScript. Let us consider you have declare a variable globally as below, In above code variables are declared globally, in other words they are not … Continue reading Variable Scope Chain in JavaScript