#1

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>
help me here is my codeā¦

```

Replace this line with your code.
var cashRegister = {
total:0,
this.total += itemCost;
},
scan: function(item, quantity) {
switch (item) {
}
}
};

// scan each item 4 times
cashRegister.scan(āchocolateā, 1);
cashRegister.scan(āmagazineā, 1);
cashRegister.scan(āeggsā, 1);
cashRegister.scan(āmilkā, 1)

//Show the total bill

``<do not remove the three backticks above>``

#2

Hi you should scan each item 4 time.

``````
cashRegister.scan("chocolate", 4);
...........
``````

#3

hahah thank you

#4

can you check it for me??

var cashRegister = {
total:0,
this.total += itemCost;
},
scan: function(item) {
switch (item) {
}
}
};

// scan each item 4 times
cashRegister.scan(āeggsā, 4);
cashRegister.scan(āmilkā, 4);
cashRegister.scan(āchocolateā, 4);
cashRegister.scan(āmagazineā, 4);

//Show the total bill

#5

this part

``````scan: function(item) {
switch (item) {
}
}
``````

like that instruction says

Modify the scan method such that if we tell it the quantity of each item, it will be able to add the right amount to the total

first here

``````scan: function(item)
``````

you should add the argument quant could be any other word you wantā¦

``````scan: function(item, quant)
``````

then in each case you should multiply the quantity by the price like that

``````case "milk": this.add(1.23 * quant); break;
``````