Skip to content

Instantly share code, notes, and snippets.

@WebReflection
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save WebReflection/528a027de195f025eec8 to your computer and use it in GitHub Desktop.

Select an option

Save WebReflection/528a027de195f025eec8 to your computer and use it in GitHub Desktop.
basic defaults
function shoutOut(name, opts) {
opts || (opts = {});
return [
name, 'says',
opts.greeting || 'greeting',
opts.target || 'target'
].join(' ');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment