27/33 help?


#1

I have spent forever trying to figure out what I did wrong. Help me please?

// 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);
famliy[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);
}

It's probably a dumb mistake I keep overlooking. Any help would be appreciated! :smile:


#2

on this line

famliy[1] = new Person("bob", 42);

you have a typo in family, should be

family[1] = new Person("bob", 42);

#3

Oh wow. Haha thank you so much!