A closure is a stack of visible areas. Say you have the following code:
var v1;
function a() {
var v2;
function b() {
var v3;
function c() {
var v4;
}
return c;
}
return b();
}
var f = a();
c - , 4 : ( v4 ), b ( v3 ), a ( v2), ( v1 ). , . c b a , , f, , , f(), , , , . , - . , , scope vars - - , . , .