Hello there, I’m having issues on logging some objects I nested into an array. When I try to delete the parenthesis, I believe these are causing the issue.
My question is, any software adds the parenthesis back automatically when I save the project?
Thank you so much for your reply, I’m quite new on this and I’m still learning, so I would like to know why did you take off the vars off from the objects? I understand that if I state them as " name(var) = { porperty1:atribute}, I’m stating them as vars, but I’d like to know why this is wrong.
When I console log it it, I can see the 3 objects, but these objects appear not to have a name, instead it shows (…) for each object, I can see the properties for each of them but I can’t log them in other way than using the index numbers (0, 1, 2).
Would you please have a look at the screenshot, I’m on the learning process, for a homework I have to deliver, I was asked to make an array, inside this array, I would have to add 3 different objects, each of them with their own properties. thank you for the help, I appreciate it, what I tried to do was to do a multidimensional array but replacing the nested arrays by objects but I know I’m missing something and I don’t know what it is.
I see, thank you, sorry if I’m just dumb about it but, I understand these ellipses are my 3 elements but I was told to name them so that’s why I wrote them as the first example, as my main goal was to use a “forEach” function to log the 3 objects and their 3 temperatures which are one of the values within them.