Last active
May 24, 2016 13:15
-
-
Save Acro/ff4323e8957179d4ae4c59368c6886cd to your computer and use it in GitHub Desktop.
FizzBuzz Javascript solution
This file contains hidden or 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(100).keys()].map(function (x) { | |
return (x % 3 == 0 ? "fizz" : "") + (x % 5 == 0 ? "buzz" : "") || x | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment