Stuck on 5/7 return


#1

My code isnt returning the subtotal at all.
I know i am missing something but for thew life of me I can't see what.
An help would be much appreciated.

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

takeOrder('bacon', 'thin');
takeOrder('pepperoni', 'regular');
takeOrder('pesto', 'thin');
control.log(getSubTotal(orderCount));

#2

Did you mean to write, console.log()?


#3

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