Skip to content

Instantly share code, notes, and snippets.

@DannyDelott
Last active August 29, 2015 14:15
Show Gist options
  • Save DannyDelott/06fa7db2c86dd47d4440 to your computer and use it in GitHub Desktop.
Save DannyDelott/06fa7db2c86dd47d4440 to your computer and use it in GitHub Desktop.
Function-first setInterval() implementation
var interval = setInterval(function update() {
// all my code
return update;
}(), 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment