5. return


#1


https://codecademy.com/courses/learn-javascript/lessons/functions/exercises/return?action=lesson_resume&link_content_target=interstitial_lesson


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');


#2

You would have to use

Hope I helped :slight_smile:


#3

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


#4

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


#5

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