Skip to content

Instantly share code, notes, and snippets.

@tjeastmond
Created September 2, 2015 13:35
Show Gist options
  • Save tjeastmond/612fd72c2c4658cb3d09 to your computer and use it in GitHub Desktop.
Save tjeastmond/612fd72c2c4658cb3d09 to your computer and use it in GitHub Desktop.
for (var i = 1; i <= 100; ++i) {
var f = i % 3 === 0, b = i % 5 === 0;
console.log(f ? b ? 'FizzBuzz' : 'Fizz' : b ? 'Buzz' : i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment