Shopping List help!

Tell us what’s happening:

Your code so far


var myList = [["Chocolate Bar", 15],["stew", 10],["meat", 5], ["sweet", 2],["phone" 6]];


Your browser information:

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

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

1 Like

Good day @amakannokwe,

Looking at your code, the concept and solution will be working fine only if you put a comma separator in the last array between the “phone” string and the number 6.

1 Like

Thank you for your assistance