function fizzbuzz(n) {
for (let i = 1; i <= n; i++) {
const fizz = i % 3 == 0, buzz = i % 5 == 0;
console.log(
fizz && buzz ? "FizzBuzz"
: fizz ? "Fizz"
: buzz ? "Buzz"
: i
);
}
}
ra-res / binary-clock Goto Github PK
View Code? Open in Web Editor NEWBinary Clock implementation in React.js