📜  fizzbuzz js - Javascript 代码示例

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

代码示例2
// This is the most compact one I could make

for (let i = 1; i < 101; i++) console.log((i % 3 ? "" : "fizz") + (i % 5 ? "" : "buzz"));