Loop the loop syntax error


#1



Loop the loop


syntax error: expected ;

I can't figure out where a semi-colon could even be placed in this code... have tried this with and w/o the semi-colon at the end of the person function

Any help would be greatly appreciated.

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


#2

Try changing "Function" to "function".

If that doesn't work, then it must be a bug, because I cannot find anything wrong with your code.