Skip to content

Instantly share code, notes, and snippets.

@benatkin
Last active Jan 27, 2021
Embed
What would you like to do?
for (let i=1; i <= 100; i++) {
let s = '';
if (i % 3 == 0) s += 'Fizz';
if (i % 5 == 0) s += 'Buzz';
console.log(s.length ? s : i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment