Skip to content

Instantly share code, notes, and snippets.

/foo.js Secret

Created September 3, 2014 11:55
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 anonymous/1769420ad62c1d5d9d82 to your computer and use it in GitHub Desktop.
Save anonymous/1769420ad62c1d5d9d82 to your computer and use it in GitHub Desktop.
setTimeout and recursion
function foo(a, b) {
var x = {a: a},
y = {b: b};
setTimeout(function() {
foo(x, y);
}, 3000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment