Problem with point 4. Parameters II

I can’t pass point 3 -> Below the takeOrder function, call the function 3 times and pass in different arguments each time for topping and crustType.

My code:
function takeOrder(topping, crustType) {
console.log(‘The pizza topped with ’ + topping + ’ and ’ + crustType + ’ crust is done. Let’s eat!’);
}

takeOrder(‘bacon’, ‘thin’);

you only have one function call:

takeOrder('bacon', 'thin');

you need 3 function calls, see error message

Can You write it because I don’t understand…

well you could add another function call with for example pineapple and thick as arguments. In total you need 3 function calls.

1 Like

you need to call takeOrder 3 times then it will work

1 Like

Just wondering, how old are you guys

please make a topic in corner bar if you want to know such a thing, don’t clutter this topic

Help please, what´s wrong with my code??,
function takeOrder(topping, crusType) {
console.log(‘The pizza topped with ’ + topping + ’ and ’ + crustType + ’ crust is done. Let’s eat!’);
}

takeOrder(“bacon”, “thin”);
takeorder(“sausage”, “thick”);
takeOrder(“pineapple”, “crisp”);

You forgot a t in crustType here

Capitalize the o in takeorder here

ThankYou!!!, (7°o°)7, so much!.

I´ll try don´t forget!!. (/°-°)/.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.