Loops loops and loops


#1


I need help please. i don't know what i am doing wrong.

https://www.codecademy.com/courses/spencer-sandbox/4/2?curriculum_id=506324b3a7dffd00020bf661#


console window error: ---
We're running a test below to make sure your code works.

ReferenceError: fmaily is not defined

Popup window error: Oops, try again. Make sure to log to the console the name of each object


// 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);
fmaily[3] = new Person("timmy", 6);

// loop through our new array
for(i = 0; i <= family.length; i++) {
 console.log(family[i].name);   
}


#2

One error you are getting comes when you are adding the person timmy, you misspell "family" as "fmaily"


#3

thanks for your help
i did not see that there thanks
:grinning:


#4