JSFiddle - React, Tailwind, and code Playground
by Arif Hasan
JavaScript
let temp = [];
for (let i=1; i<=100; i++){
if (i%3===0 && i%5!==0){
temp.push('Fizz')
} else if ( i%5===0 && i%3!==0 ){
temp.push('Buzz')
} else if ((i%3===0)&&(i%5===0)){
temp.push('FizzBuzz')
} else temp.push(i)
}
console.log(temp.join(' '))