Skip to content

Instantly share code, notes, and snippets.

@KarbonDallas
Created December 15, 2011 00:53
Show Gist options
  • Save KarbonDallas/1479335 to your computer and use it in GitHub Desktop.
Save KarbonDallas/1479335 to your computer and use it in GitHub Desktop.
FizzBuzz
for(var i=1;i<=100;i++){console.log([3,5].map(function(x){if(!(i%x)){return x==3?"Fizz":"Buzz"}}).join('')||i.toString())}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment