Skip to content

Instantly share code, notes, and snippets.

@kreshikhin
Created February 6, 2014 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kreshikhin/8846771 to your computer and use it in GitHub Desktop.
Save kreshikhin/8846771 to your computer and use it in GitHub Desktop.
for (var i = 1; i <=3; ++i) {
var build_clojure_with_new_variable = function(new_variable){
return function(){
console.log(new_variable);
};
};
var clojure = build_clojure_with_new_variable(i);
setTimeout(clojure, 0);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment