Skip to content

Instantly share code, notes, and snippets.

@jeffmicklos
Created March 21, 2011 18:20
Show Gist options
  • Save jeffmicklos/879914 to your computer and use it in GitHub Desktop.
Save jeffmicklos/879914 to your computer and use it in GitHub Desktop.
1 - 1000 without a loop
var iterator = function iterator(num) {
if(num < 1000) {
num++;
console.log(num);
iterator(num);
}
}(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment