Last active 1687377413

First code written after a 16 day vacation!!

josefandersson's Avatar josefandersson revised this gist 1687377413. 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