Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fizzbuzz javascript

// This is the most compact one I could make

for (let i = 1; i < 101; i++) console.log((i % 3 ? "" : "fizz") + (i % 5 ? "" : "buzz"));
 
PREVIOUS NEXT
Tagged: #fizzbuzz #javascript
ADD COMMENT
Topic
Name
1+9 =