I need some help solving this order() function problem in the functions practice pack. It has to do with getting ice cream flavor and number of scoops. Any assistance would be appreciated. Thanks.

Above we see string interpolation using incorrect syntax. Template literals must be delimited with back ticks, not standard quotes.

You’ll need to compose a conditional to handle the singular scoop versus plural scoops.

Hint: A ternary expression can be used inside of, ${...}.

1 Like