Understanding Arrays

Tell us what’s happening:

I was just wondering if we can add more than five sub-elements to our “Shopping List” Array?
Your code so far


var myList = [["Soda Can", 12], ["Salami", 4], ["Pens", 6], ["Shirts", 2], ["Underwear", 6]];

Your browser information:

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

Challenge: Shopping List

Link to the challenge:

Yes.
https://www.w3schools.com/js/js_array_methods.asp

Hi @adammarentis !

The instructions say this:
There should be at least 5 sub-arrays in the list.

at least 5 means there just needs to be a minimum of 5.
You can have as as many as you want as long as there is a minimum of 5.

Hope that helps!

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