Created
February 6, 2014 15:47
-
-
Save kreshikhin/8846771 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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