Shopping list: keep getting an error I can't solve?

Tell us what’s happening:

Your code so far
var myList = [[“milk”, 6][“Chopped meat”, 1500][“spaghetti”, 2][“bred”, 3][“back of potato’s”, 1]];


var myList = [["milk", 6]["Chopped meat", 1500]["spaghetti", 2]["bred", 3]["potatos", 1]];

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36.

Challenge: Shopping List

Link to the challenge:

You should separate the arrays with coma

3 Likes

Other than the items in the array, seperate the arrays themselves. I was here just a day or 2 back, and I should be feeling ashamed saying I made both of the mistakes.

1 Like