Wednesday, July 20, 2016

Simple example of closure


s= function(r){
i=89;
return function(){
return i * r;
}
}
s(10)();

No comments:

Post a Comment