Bleep Bleep SyntaxError unexpected identifier


#1



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


Hey guys, beforehand, i'd like to apologize if i mispell something, english is not my native language.

Te problem goes like this, i've been stuck with this excercise, i've already triple checked the code and it drops me a Syntax Error: Unexpected identifier;

Could any one check it out plz? Thanks by the way

var cashRegister = {
    total:0,
    lastTransactionAmount:0,

    add: function(itemCost) {
        this.total +=  itemCost;
        this.lastTransactionAmount -= itemCost;
    },
    scan: function(item,quantity) {
        switch (item) {
        case "eggs": this.add(0.98 * quantity); break;
        case "milk": this.add(1.23 * quantity); break;
        case "magazine": this.add(4.99 * quantity); break;
        case "chocolate": this.add(0.45 * quantity); break;
        }
        return true;
    },
    vo0dLastTransaction: function(){
        this total -= this.lastTransactionAmount;        
    }
};

cashRegister.scan('eggs',1);
cashRegister.scan('milk',1);
cashRegister.scan('magazine',1);
cashRegister.scan('chocolate',4);
cashRegister.voidLastTransaction;
cashRegister.scan('chocolate',3);

console.log('Your bill is '+cashRegister.total);


#2

Hi this line

 vo0dLastTransaction: function()

you wrote vo0dLastTransaction instead of voidLastTransaction


#3

Damn you wonderfull person, thanks for pointing it out!.