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