Please help 27/33


#1

I keep getting the error message "ReferenceError: Person is not defined. I believe my code is all correct. Any ideas?

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

Hi this line

family[3] = new person("Timmy", 6);

you wrote person instead of Person


#3

Wow! that fixed it, you have a really good eye lol, thanks!