Created
December 24, 2020 07:44
-
-
Save agarmu/decb606f596a3ee3da3a6ed180128ed6 to your computer and use it in GitHub Desktop.
Fizzbuzz without conditionals π
This file contains hidden or 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
let fizzbuzz = [ | |
"\rfizzbuzz", | |
"", | |
"", | |
"\rfizz", | |
"", | |
"\rbuzz", | |
"\rfizz", | |
"", | |
"", | |
"\rfizz", | |
"\rbuzz", | |
"", | |
"\rfizz", | |
"", | |
"" | |
] | |
for(let i = 0; i < 200; i++) { | |
console.log(`${i}${fizzbuzz[i%15]}`) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment