Javascript uses function as scope. Declare a function inside another function creates a different scope. Let’s look at the example code below. Result From the result above we can see clearly the inner scope variable without var overwrites the outer … Continue reading
↧