What the problem in my Code?

// Why it shows error?

var myList = ;
myList[[“Chocolate Bar”,15],[“Juice”,22],[“Candy”,10],[“eggs”,20],[“Bananas”,18]];

**Your browser information:**

User Agent is: <code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36</code>.

**Challenge:** Shopping List

**Link to the challenge:**
1 Like

Sorry But I did one mistake! Now it is fixed due to assignment operator!

1 Like

Good job figuring it out! Happy coding.