Skip to content

Instantly share code, notes, and snippets.

@geoffreydhuyvetters
Last active November 21, 2018 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geoffreydhuyvetters/ca2bbc7b1f597c4254fab5bd4ad111d4 to your computer and use it in GitHub Desktop.
Save geoffreydhuyvetters/ca2bbc7b1f597c4254fab5bd4ad111d4 to your computer and use it in GitHub Desktop.
FizzBuzz
#!/usr/bin/env node
for(i=0;i<100;)console.log((++i%3?'':'Fizz')+(i%5?'':'Buzz')||i)
{
"name": "fizzbuzz",
"version": "1.0.0",
"bin": "index.js"
}
@geoffreydhuyvetters
Copy link
Author

geoffreydhuyvetters commented Nov 21, 2018

You can run this code example by running

npx https://gist.github.com/duivvv/ca2bbc7b1f597c4254fab5bd4ad111d4

or

npx gist:ca2bbc7b1f597c4254fab5bd4ad111d4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment