Can someone help me with this code


#1

Hi i am Ken
Please can someone help me with this code.

var orderCount=0;
function takeOrder(topping,crustType){console.log('Order:'+ crustType +' topped with '+ topping+getSubTotal);orderCount=orderCount+1;}
function getSubTotal(itemCount){
return(itemCount*7.5);
}

takeOrder('bacon','sandwich pizza');
takeOrder('bacon','meat pizza');
takeOrder('bacon','chicken pizza');
takeOrder('bacon','pork pizza');
{console.log(getSubTotal(orderCount));}


Welcome to our forums! Please Introduce Yourself
#2

https://www.codecademy.com/en/courses/learn-javascript/lessons/functions/exercises/return-ii

Please include a link to the exercise when posting a question. Thanks.

That does not look right. Check your code against the instructions.


#3

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