Introduction to objects Loop the Loop


these are the errors my code gives me Ive spent a while trying to debug it so any help is greatly appreciated:)
"Make sure to log to the console the name of each object"
the array literal notation [] is preferable

// Our Person constructor
function Person (name, age) { = 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; i < family.length; i++) {



for(var i

i should have an initialize value


great works now thanks!