RE: Introducing the Coding Challenge

You are viewing a single comment's thread from:

Introducing the Coding Challenge

in coding-challenge •  7 years ago 

Probably the shortest FizzBuzz code

for(i=0;i<1e2;)
console.log((++i%3?"":"Fizz")+(i%5?"":"Buzz")||i)
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

You can go even shorter ;) But I mean the idea is to have it nice and readable and thought through :P

Not the best looking code, however you could add some comments... :D