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.
Let’s check your first sub-array and see if it meets the requirements.
The first sub-array is:
["Chocolate Bar", ["QTY",1]
Is the first element of the sub-array a string containing a name?
Yes, "Chocolate Bar" is a string.
Is the second element a number representing the quantity?
No, it is an array (["QTY",1]) with the first element a string (QTY) and the second element a number.
Now that you know what the second sub-array is compared to what it is supposed to be, see if you can solve the challenge now.