A drink costs 4 dollars. A pizza costs 8 dollars. Given the number of each, compute total cost and assign to totalCost. Ex: 2 drinks and 3 pizzas yields totalCost of 32.

this is what i can not change:
let drinkQuantity = 2; // Code tested with values: 2 and 4
let pizzaQuantity = 3; // Code tested with values: 3 and 7

I need it written as how i would plug into the code, I dont understand and cant find any examples of the written code



Answer :

Other Questions