Bleep Bleep, why the result is not 0?


#1



My code is working, but I am not fully understand why the result is not 0, because ~this.lastTransactionAmount = itemCost;~ and ~voidLastTransaction : function(){
this.total -= this.lastTransactionAmount;
} ~
itemCost is everything including eggs, milk, magazine and chocolate. So why it is only related to the last transaction, chocolate?


Replace this line with your code.


#2

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