Need a little help with Shopping List

Need a little help with Shopping List
0

#1

Tell us what’s happening:
This code won’t pass, I don’t know what I’m missing. The test gives me “Cannot read property of ‘0’ of undefined”. What does that mean?

Your code so far


var myList=[["Chocolate bar",15],["Water bottle",3],["Chips",2],["Coke",5]["Beer",10]];


Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/shopping-list


#2

hint: you missed someting here!


#3

Ohh i missed a comma! Thank you :slight_smile: