Can't understand this one!


#1


https://www.codecademy.com/en/courses/close-the-super-makert/0/5?curriculum_id=506324b3a7dffd00020bf661#


No errors, I just can't understand how lastTransactionAmount take the last itemCost?


So, this is the line that do the trick but I can't figure out how:

        this.lastTransactionAmount = itemCost;

Oh.. and what's the purpose of this?

        return true;


#2

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