Foxhole Atheist
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment