Skip to content

Instantly share code, notes, and snippets.

@athaeryn
Last active June 17, 2016 16:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save athaeryn/021d1d35adbf5ca5a592 to your computer and use it in GitHub Desktop.
Save athaeryn/021d1d35adbf5ca5a592 to your computer and use it in GitHub Desktop.
fizzbuzzjustbecuzz.js
console.log(
(Array(100) + "")
.split(",")
.map(function(s, i) {
return !!(++i % 3) || (s += "Fizz"),
!!( i % 5) || (s += "Buzz"),
s || i;
})
.join("\n")
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment