3.7 multiply


#1

why is this not accepted?

//Scan 2 eggs and 3 magazines
cashRegister.scan** ("eggs")2,("magazine")3;**
//Show the total bill
console.log('Your bill is '+cashRegister.total);


#2

it should have "2" and "3" (2 x eggs) and (3 x magazines) in my first question but the editor did not accept the characters?

//Scan 2 eggs and 3 magazines
cashRegister.scan ("eggs")2,("magazine")3;
//Show the total bill
console.log('Your bill is '+cashRegister.total);


#3

This is how you scan 1 item:

cashRegister.scan("itemName");

So, you have to do this twice with eggs and 3 times with magazines.