Skip to content

Instantly share code, notes, and snippets.

@Acro
Last active May 24, 2016 13:15
Show Gist options
  • Save Acro/ff4323e8957179d4ae4c59368c6886cd to your computer and use it in GitHub Desktop.
Save Acro/ff4323e8957179d4ae4c59368c6886cd to your computer and use it in GitHub Desktop.
FizzBuzz Javascript solution
[...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