Skip to content

Instantly share code, notes, and snippets.

@benatkin
Last active January 27, 2021 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benatkin/897cdc081e338286a47799ec3e0d7512 to your computer and use it in GitHub Desktop.
Save benatkin/897cdc081e338286a47799ec3e0d7512 to your computer and use it in GitHub Desktop.
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