Try changing the call order like
takeOrder('regular', 'bacon'); takeOrder('thin crust', 'extra cheese'); takeOrder('thin crust', 'olives'); console.log(getSubTotal(orderCount));
var takeOrder is no longer needed and since you have a function with the same name takeOrder is that function.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.