Skip to content

Instantly share code, notes, and snippets.

@athaeryn

athaeryn/fizzbuzz.js

Last active Jun 17, 2016
Embed
What would you like to do?
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