Can some help on to read the variables inside the closures. I know by having a function with return statement i can get the value.
var getCounter = (function () {
var counter = 10;
return function () {return counter;}
})();
getCounter(); produces 10
Is there any way to access or read the variable without the return function ?
closurethen ?closuremanipulates it..