Skip to content

Instantly share code, notes, and snippets.

@jeffmicklos
Created March 21, 2011 18:20
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 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