I don't know what the problem is?


#1

// Our Person constructor

function Person(name, age) {
this.name = name;
this.age = age;

};

// Now we can make an array of people
var Person1 = new Person("alice",40)
var Person2 = new Person("bob",42)
var Person3 = new Person("michelle",8)
var Person4 = new Person("timmy",6)
var family = [Person1,Person2,Person3,Person4]
// loop through our new array
for (i=0;i > 3;i++) {

console.log(family[i].name)

#2

your loop:

i = 0; i > 3

this condition is false in the first run? so the loop never runs


#3

Thanks, the simple things that can mess up a script are amazing.

I also needed to set 3 to 4.

=]


#4