27. loop the loop


#1

this is my code and i get SyntaxError: Unexpected token )


// Our Person constructor
var setup = function 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(i = 0, i < family.length, i++) {
    console.log(family[i].name);
}

#2

lol guys ive fund the answer. I did this
for(i = 0, i < family.length, i++) {
but it was ment to be
for(*var* i = 0 *;* i < family.length *;* i++) {