Slimbu
1
Tell us what’s happening:
Your code so far
var myList = ["Coke", "Spam", "Eggs", "Water", "Chicken"];
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
.
Challenge: Shopping List
Link to the challenge:
Hey there @Slimbu,
A subarray means it’s an array that is inside another array, that holds multiple content. Here’s an example:
var myArray = [["first subarray", 1], ["here's my 2nd", 2], ["third one yay", 3]];
So what the challenge is asking is to make an array of subarrays, that contain [item, amount]. Here’s an example of that:
var myArray = [["chicken", 3], ["ice cream" 5]];
So you are sort of making a grocery list.