Created
April 30, 2015 18:15
-
-
Save mrdrozdov/56f97077297ed9675682 to your computer and use it in GitHub Desktop.
FizzBuzz in a Tweet
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
function fizzbuzz (n) { | |
var r = !(n % 3) ? 'Fizz' : '' | |
r += !(n % 5) ? 'Buzz' : '' | |
return r ? r : n | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment