Skip to content

Instantly share code, notes, and snippets.

@brianloveswords
Created May 15, 2015 17:15
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 brianloveswords/53cca4d71a3317b7b8c9 to your computer and use it in GitHub Desktop.
Save brianloveswords/53cca4d71a3317b7b8c9 to your computer and use it in GitHub Desktop.
function celebrate(emoji, length) {
if (length <= 0) return;
const idx = Math.random() * emoji.length | 0;
process.stdout.write(emoji[idx]);
return celebrate(emoji, length - 1);
}
const celebrationEmoji = ["πŸŽ‰","πŸ‘","πŸŽ‚","🎊","πŸ’ƒ","πŸ‘","🎈","🍰",];
celebrate(celebrationEmoji, 140);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment