You are viewing a single comment's thread from:
RE: The most common interview question for programmers[English/German]
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)