Basic JavaScript: Shopping ListPassed

Tell us what’s happening:
Can anyone tell what I’ve done wrong

Your code so far

var myList = myList ["chocolate", 7];
["cookie", 4];
["t-shirt", 1];
["milk", 3];
["mobile", 1];

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; LM-X420) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Mobile Safari/537.36.

Challenge: Shopping List

Link to the challenge:

The instructions say:

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

You have:
var myList = myList ["chocolate", 7];

The instructions also say:

There should be at least 5 sub-arrays in the list.

Your list is an array with two elements. It does not contain any sub-arrays.

Also, you are given the basic shape of the array assignment to a variable:

var myList = [];

But, you have:

var myList = myList [“chocolate”, 7];

Pay attention to what is outside of the brackets on the right-hand side of the statement.