📜  hackerrank fizzbuzz javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:14.010000             🧑  作者: Mango

代码示例2
for (i=1; i<=100; i++) {
    console.log((i%3==0&&i%5==0)?"FizzBuzz":(i%3==0)?"Fizz" : (i%5==0)?"Buzz" : i);
}