Skip to content

Instantly share code, notes, and snippets.

@kobaken0029
Created May 23, 2016 22:59
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 kobaken0029/8eabd7e20d5c86ad1287037f9bfdc270 to your computer and use it in GitHub Desktop.
Save kobaken0029/8eabd7e20d5c86ad1287037f9bfdc270 to your computer and use it in GitHub Desktop.
ES6でワンライナーfizzbuzz
[...Array(101).keys()].slice(1,101).forEach(i=>console.log((i%3?'':'fizz')+(i%5?'':'buzz')||i))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment