Skip to content

Instantly share code, notes, and snippets.

@masterots
Last active August 29, 2015 14:20
Show Gist options
  • Save masterots/d954cd624969f523e3be to your computer and use it in GitHub Desktop.
Save masterots/d954cd624969f523e3be to your computer and use it in GitHub Desktop.
for (var i = 1; i < 100; i++) {
var output = i % 3 === 0 ? 'fizz' : '';
output += i % 5 === 0 ? 'buzz' : '';
console.log(output ? output : i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment