o9s
is a microblog
home archives search feed blogroll


Shortfizz

My 65 characters fizzbuzz implementation. It’s not the prettiest, but it checks all the boxes.

for(i=0;i<101;i++)console.log((i%3?'':'Fizz')+(i%5?'':'Buzz')||i)
Posted on 2018-05-23   #javascript  






← Next post    ·    Previous post →