Loops for loops


#1



https://www.codecademy.com/en/courses/spencer-sandbox/4/2?curriculum_id=506324b3a7dffd00020bf661


Oops, try again. There was a problem with your syntax.


Replace this line with your code. 
// Our Person constructor
functon Person(name,age){
   this.name = name;
   this.age = age;
};

// Now we can make an array of people
var family = new Array();
family[0] = new Person("alice", 40);
family[1] = new Person("bob", 42);
family[2] = new Person("michelle", 8);
family[3] = new Person("timmy", 6);

// loop through our new array
for (var i = 0; i > family.length; i++) {
    console.log(arrayName[i].propertyName);
};


#2

Seems that function was misspelled. :slight_smile:

i will never be greater than family.length. :slight_smile:


#3

thank you so much i got it now