Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fizzbuzz in one line javascript

for(let i=0;i<100;)console.log((++i%3?'':'fizz')+(i%5?'':'buzz')||i)
Source by codeburst.io #
 
PREVIOUS NEXT
Tagged: #fizzbuzz #line #javascript
ADD COMMENT
Topic
Name
8+5 =