Answer:
Answer:
Add the following code after the line 3 that is:
numItems = numItems - 1;
Explanation:
In the following question, some information in the question is missing that is code block.
0 var numItems = promptNum("How many items?");
1 var total = 0;
2 while (numItems > 0){
3 total = total + promptNum("Enter next item price");
4 }
5 console.log("The total is" + total);
In the following scenario, Tiffany is developing a program to help with the handling of bake sales and she not write that part which is essential.
There would become an incorrect condition that requires any increment/decrement operations stating that perhaps the condition variable will be incorrect. Because there has to be the variable "numItems" operation because it engages in the while loop condition.
Read more on Brainly.com - https://brainly.com/question/15009132#readmore
Explanation: