11. Arrays and objects in JS HELP requested!


#1


https://www.codecademy.com/de/courses/javascript-beginner-en-9Sgpi/3/1?curriculum_id=506324b3a7dffd00020bf661


Oops, try again. Is the first element of myArray a number?


var myArray = [ [4], [3 < 4], ["Hello!"], [myObject] ] 
var myObject = new Object();
myObject.name = "LoL"


If anyone could explain why this message comes up, that would be great! :slight_smile:
Already thanks alot!


#2

the first element in your array is an array ([4]) not a number (4)


#3

SO you say that these [] have to go away?


#4

well, obviously since that makes it an array.


#5

okay got it :wink: thanks!