MCPcopy Create free account
hub / github.com/appacademy/Module-1-Resources / sundaeOrder

Function sundaeOrder

w2/d4/closure-repl.js:22–31  ·  view source on GitHub ↗
(topping2)

Source from the content-addressed store, hash-verified

20 }
21*/
22function sundaeOrder(topping2) {
23 // your code here
24let sentence = 'A bowl of ice cream with hot fudge'
25
26return function (topping, topping2) {
27 // your code here
28 let newSentence = sentence += ` and ${topping}`;
29return newSentence;
30};
31};
32
33let sundae = sundaeOrder(); // => returns a function
34// console.log(sundaeOrder('nuts')('caramel'))

Callers 1

closure-repl.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected