Last active
June 17, 2016 16:46
-
-
Save athaeryn/021d1d35adbf5ca5a592 to your computer and use it in GitHub Desktop.
fizzbuzzjustbecuzz.js
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
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