Ask HN: What is the shortest fizzbuzz code you can write?1 points·by mappum·14 anni fa·0 commentsAny language is viable, and the snippet must be able to work independently. How few characters can you get it?I narrowed down my JS fizzbuzz to 64 characters:for(i=0;i++<100;)console.log((i%3?'':'Fizz')+(i%5?'':'Buzz')||i)It uses a global though, Douglas Crockford wouldn't like it.0 commentsPost comment—
I narrowed down my JS fizzbuzz to 64 characters:
for(i=0;i++<100;)console.log((i%3?'':'Fizz')+(i%5?'':'Buzz')||i)
It uses a global though, Douglas Crockford wouldn't like it.