const takeOrder = (topping, crustType) => {
console.log('Order: ' + crustType + ' thin crust topped with ' + topping);
};
takeOrder('mushroom','bacon');
Output: Order: bacon thin crust topped with mushroom
The second point/mission is completed, but i feel it havent been with the wrong output displaying.
Im learning code at work since we need it in the future.
(Parameters II)
Hi @multigamerclub,
In Learn JavaScript: Functions, Parameters II, the second instruction asks you to interpolate the crustType
parameter. You can do that as follows …
console.log(`Order: ${crustType} pizza topped with ${topping}`);
};
Note that backticks, a $
, and curly brackets are used to perform the interpolation.
1 Like
system
closed
#3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.