Basic JavaScript - Shopping List

Tell us what’s happening:

Can someone please take a look at the code below for this Array. ?? It is not allowing me to proceed but I can’t find anything wrong - this is supposed to be an array with 5 items

Basic JavaScript - Shopping List
Your code so far

var myList = [[“Chocolate Bar”, 15], [“Vanilla”, 7], [“Stawberry”, 4], [“Blueberry”, 7], [“Peach”, 10], [“Crackers” 43]];

**Your browser information:**

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

**Link to the challenge:**

Hi @nic9075,

please check your last object. there is a little typo there. once you’ve corrected it should already work.

happy programming!

1 Like

this object has a typo

Thanks everyone :slight_smile: for the quick replies. I didn’t catch that missing comma in the last object, it now works

1 Like