Help me


#1

any help please?

help

let orderCount = 0;

const takeOrder = (topping, crustType) => {
orderCount++;
console.log('Order: ’ + crustType + ’ pizza topped with ’ + topping);
};

takeOrder(‘mushroom’, ‘thin crust’);
takeOrder(‘spinach’, ‘whole wheat’);
takeOrder(‘pepperoni’, ‘brooklyn style’);

const getSubTotal = (itemCount) => {
return itemCount * 7.5;
};
const getTax = (itemCount) => {
return itemCount
}

console.log(getSubTotal(orderCount));

btw its question 1


#2

The above does not look quite right. Check the instructions for how to write this function.

Please remember to link to the execise when posting a new topic relating to a lesson. Thanks.


#3

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