so when you call the function you are supposed to give it a topping. so you could say pepperoni or extra cheese, as long as its in " ". it might be better to make the topping variable a prompt to ask what kind of topping the user wants.
var topping = prompt(" What would you like on your Pizza?"); and that way you can choose every time. also you are going to have to do it anyway.
I hope that actually helps. if not just let me know and ill see what I can do.
actually, after looking through my old code I see that you don't even need a parameter in the function. so basically delete topping everywhere and it should work.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.