JSFiddle - React, Tailwind, and code Playground

fizzbuzzfun

by nickadeemus2002

JavaScript

var x = 1;
var y;

while (x <= 100) {
	y = (x % 3 === 0) 
  	 ? (x % 5 === 0 
     		? "FizzBuzz" 
        : "Fizz") 
     : ( x % 5 === 0 
      	 ? "Buzz" 
         : x);
	console.log(y);
	x++;
}