sooooo i the course gave me a task that I have to make a shopping list and the list should be a multi-dimensional array containing several sub-arrays.
And somehow, a error pop up says this .
“TypeError: Cannot read properties of undefined (reading ‘3’)”
sooooo a lil’ help? please
this is my code:
const myList = [
[“something” , 1]
[“another thing” , 2]
[“another another thing” , 3]
[“aaaaaaaaaaa” , 4]
[“out of idea” , 5]
];
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Shopping List
Link to the challenge:
