Skip to content

Instantly share code, notes, and snippets.

@dimasandhk
Last active December 20, 2021 11:14
Show Gist options
  • Save dimasandhk/5d09df50f560f76f1d88295111ec2f70 to your computer and use it in GitHub Desktop.
Save dimasandhk/5d09df50f560f76f1d88295111ec2f70 to your computer and use it in GitHub Desktop.
for(let i = 1; i <= 100; i++) {
const str = (i % 3 ? '' : 'Fizz') + (i % 5 ? '' : 'Buzz');
console.log(str || i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment