for(var i=0;i<10;iPP){
fnArr[i]=(function(){
var n=i;
return function(){
return n
}
})();
}
for(var i=0;i<10;iPP){
(function(){
var n=i;
fnArr[i]=function(){
return n
};
})()
}
all of the above allow fnArr [3] to output 3 instead of 10, but why do you have to declare nSecreti? If you go to this sentence, you will not be able to output it correctly
.