Created
November 5, 2019 15:57
-
-
Save BolajiOlajide/83ef8c2e26a64e6a2f606e2906f5464a to your computer and use it in GitHub Desktop.
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
const fizzBuzz = i => ({ | |
truefalse : 'Fizz', | |
falsetrue : 'Buzz', | |
truetrue : 'FizzBuzz', | |
}[(i % 3 == 0) + '' + (i % 5 == 0)] || i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment