Skip to content

Instantly share code, notes, and snippets.

@ykhs
Created June 18, 2012 15:53
Show Gist options
  • Save ykhs/2949050 to your computer and use it in GitHub Desktop.
Save ykhs/2949050 to your computer and use it in GitHub Desktop.
100数える
Array.apply(null, Array(100)).forEach(function(x, i) {
console.log(i + 1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment