Help me for this to fix

Tell us what’s happening:
Describe your issue in detail here.
Create a shopping list in the variable myList. The list should be a multi-dimensional array containing several sub-arrays.

The first element in each sub-array should contain a string with the name of the item. The second element should be a number representing the quantity i.e.

  **Your code so far**
const myList = [
[["chocolate", "first", "choco1"], 20],
[["chocolate", "one", "choco1"], 20],
[["chocolate", "two", "choco1"], 20],
[["chocolate", "three", "choco1"], 20],
[["chocolate", "five", "choco1"], 20]
];

  **Your browser information:**

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

Challenge: Shopping List

Link to the challenge:

i can see 2d array but where is your question?

Create a shopping list in the variable myList. The list should be a multi-dimensional array containing several sub-arrays.

The first element in each sub-array should contain a string with the name of the item. The second element should be a number representing the quantity

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.