Objects 1, 27, We are running a test below to make sure your code works


#1

function Person(name, age) {
this.name = name
this.age = age
};
var family = [];
family[0] = new Person("alice", 40);
family[1] = new Person("bob", 42);
family[2] = new Person("michelle", 8);
family[3] = new Person("timmy", 6);
// Now we can make an array of people
for(i = family.length; i < 4; i++) {
console.log(family[i].name);
console.log(family[i].age);
};


#2

We're running a test below to make sure your code works. was the error message


#3

family var should be an object array not simple array your array code should look like this Personne.family = new Array(); that syntax create a new array object linked to Personne constructor


#4

Hi your for loop

for(i = family.length; i < 4; i++)

Your array begin to 0 so you should put i= 0 And Then this i < 4 to i < family.length