You are viewing a single comment's thread from:
RE: Introducing the Coding Challenge
Probably the shortest FizzBuzz code
for(i=0;i<1e2;)
console.log((++i%3?"":"Fizz")+(i%5?"":"Buzz")||i)
Probably the shortest FizzBuzz code
for(i=0;i<1e2;)
console.log((++i%3?"":"Fizz")+(i%5?"":"Buzz")||i)
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