Created
November 19, 2016 16:08
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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