Answer:
C. carTotal=carTotal + 1;
Explanation:
Option 'c' is the correct answer, because when some click on the "additembutton" the variable cartTotal should increment by 1. As jasmine want to track the record of no. of items in cart, each time customer will click "additembutton" the variable "cartTotal" increment by 1 and also update the value of that variable. e.g
If initially
cartTotal=0
When 1st time additembutton pressed
CartTotal = CartTotal + 1 ==> will make it as CartTotal=0+1 ==> CartTotal = 1
Now CartTotal=1;
When customer 2nd time press "additembutton"
CartTotal = CartTotal + 1 ==> will make it as CartTotal=1+1 ==> CartTotal = 2
This process will continue and update the cartTotal till the customer add items into the cart.