Skip to content

Instantly share code, notes, and snippets.

@insanehong
Last active December 30, 2015 03:29
Show Gist options
  • Save insanehong/7769609 to your computer and use it in GitHub Desktop.
Save insanehong/7769609 to your computer and use it in GitHub Desktop.
FizzBuzz Test
var i=1,cal;
for (;i<=100;i++) {
cal = (i%15===0) ? 'FizzBuzz' : (i%3===0) ? 'Fizz' : (i%5===0) ? 'Buzz' : i;
console.log(cal);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment