Objeto Javascript en array Loop

A continuación se muestra el ejercicio de codificación de la academia de códigos cuyo objetivo es imprimir la propiedad del nombre. ¿Puede explicar el error y cómo lo soluciono? Mi código se ve así:

 // Our Person constructor
 function Person(name, age) {
 this.name = name;
 this.age = age;
 }

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);

for (var i = 0; i <= family.length; i++) {
console.log (family[i].name);
};  
// Now we can make an array of people

// loop through our new array

OUTPUT :
alice
bob
michelle
timmy

---
We're running a test below to make sure your code works.
alicebobmichelletimmy
TypeError: Cannot read property 'name' of undefined

------------------------------------------
Many thanks. 

Respuestas a la pregunta(3)

Su respuesta a la pregunta