josefandersson revised this gist . Go to revision
1 file changed, 4 insertions
ugly-fizzbuzz.js(file created)
@@ -0,0 +1,4 @@ | |||
1 | + | const fizzBuzz = (num=1) => num <= 100 && ( | |
2 | + | console.log(((num % 3 === 0 ? 'fizz' : '') + (num % 5 === 0 ? 'buzz' : '')) || num) | |
3 | + | || fizzBuzz(num + 1) | |
4 | + | ) |
Newer
Older