Created
May 23, 2016 22:59
-
-
Save kobaken0029/8eabd7e20d5c86ad1287037f9bfdc270 to your computer and use it in GitHub Desktop.
ES6でワンライナーfizzbuzz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...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