Basic JavaScript - Shopping List

Basic JavaScript - Shopping List
0

#1

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:**
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/shopping-list/

#2

Hi @nic9075,

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

happy programming!


#3

this object has a typo


#4

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