Skip to content

Instantly share code, notes, and snippets.

@rg3915
Created February 9, 2019 20:11
Show Gist options
  • Save rg3915/508769a8256fb37e856e83112d3a9ead to your computer and use it in GitHub Desktop.
Save rg3915/508769a8256fb37e856e83112d3a9ead to your computer and use it in GitHub Desktop.
counter setInterval JS javascript
var i = 0
var intervalo = window.setInterval(function() {
console.log(i);
i++
}, 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment