babu1
1
Tell us what’s happening:
Could not figure it out what wrong am I doing
Your code so far
var myList = ["coffee", 3; "tea", 4; "milk", 5; "suger", 6; "spoon",7]; console.log(myList)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36.
Challenge: Shopping List
Link to the challenge:
Hi there @babu1
To my opinion, no semicolons ; are allowed inside array…
babu1
3
Yes I tried that way to by elemeniting semicolons but coming up the followings:
The first elements in each of your sub-arrays should all be strings.
The second elements in each of your sub-arrays should all be numbers.
You should have at least 5 items in your list.
babu1
4
var myList = [“coffee”, 3 “tea”, 4 “milk”, 5 “suger”, 6 “spoon”,7]; console.log(myList)
Re-read the instructions carefully. You need to create multi dimensional arrays…
babu1
6
In fact, there is no example of multi dimensional. Could you please show me one
Multi dimensional array it is nesting one array in another. You have a lesson like that in Javascript basic.
babu1
8
Yes, thank you. The point is nesting; I got it. The brackets followed by coma. Solved it; thanks again
Please select the mail that helped you as a “solution”, to credit the person that helped you to get to solution.
Thank you.
babu1
10
Ok i’ll do if I find it since you the only one I was talking to. Thanks