Quantcast
Channel: DreamersLab
Viewing all articles
Browse latest Browse all 10

Javascript function scopes and closures

$
0
0
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

Viewing all articles
Browse latest Browse all 10

Trending Articles