Skip to content

Instantly share code, notes, and snippets.

@voituk
Created July 18, 2013 15:11
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 voituk/6030113 to your computer and use it in GitHub Desktop.
Save voituk/6030113 to your computer and use it in GitHub Desktop.
js-test-2
// what's the difference (if any) between
setInterval(function() {
console.log("hello")
}, 1000);
// and:
setTimeout(function() {
console.log("hello")
setTimeout(arguments.callee, 1000)
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment