function test1() {
var a = 1;
return function() {
a++;
console.log(a);
}
}
var test = test1();
test();
test();
test();
function test1() {
var a = 1;
return function() {
a++;
console.log(a);
}
}
var test = test1();
test();
test();
test();
test = null;