2 ms·
Indeed, much cleaner to do `Array.from({length: 100}, (_,i) => fizzbuzz(i));`
by iamsaitam 4y ago
Indeed, much cleaner to do `Array.from({length: 100}, (_,i) => fizzbuzz(i));`
- LordDragonfang 4y agoWhile we're cleaning it up: fizzbuzz = i => (i % 3 ? "" : "Fizz") + (i % 5 ? "" : "Buzz") || i Array.from({length: 100}, (_,i) => console.log(fizzbuzz(i+1)))