5. return



Inside the takeOrder function, set orderCount equal to orderCount plus 1, so that each time the takeOrder function runs, 1 is added to the orderCount.... I need help with how to write this on the code.

var orderCount= 0;
function takeOrder(topping, crustType, orderCount) 
 ('Order: ' + crustType + 'crust pizza topped with ' + topping);

takeOrder('bacon', 'thin');
takeOrder('sausage', 'stuffed');
takeOrder('pepperoni', 'thick');


You would have to use

Hope I helped :slight_smile:


I still don't get it where would I have to put the + at or would I have to make a new variable?


Hope I clarified as much as needed :slight_smile:
If not, just lemme know.


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