Skip to content

Instantly share code, notes, and snippets.

@mrosata
Created November 19, 2016 16:08
Show Gist options
  • Select an option

  • Save mrosata/28645fed68ae24cc91e880727a3b3259 to your computer and use it in GitHub Desktop.

Select an option

Save mrosata/28645fed68ae24cc91e880727a3b3259 to your computer and use it in GitHub Desktop.
Getting Curried Away - example 1a - Full Gist at https://gist.github.com/mrosata/35e4d80c2b393267a4069fbf045e22a7
// Our friendly work-adjacent coffee man!
function baristaJoe(flavor, creams, sugars) {
const coffee = getCoffee(flavor); // Pour the coffee
coffee.add.cream(creams); // How many creams to add
coffee.add.suger(sugars); // How many sugars to add
return coffee;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment