Typo 27/33


#1

Not too sure where to submit this but in exercise 27 there is a typo. In the instructions is goes: 01, 02, 03, 08.

Just thought I'd put it out there for codecademy to know.


#2

Hope it helps

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

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


#3

Was just about to log this same comment - glad I'm not the only one noticing these things!


#4

Wow, you joined a day ago and already at objects?!


#5

I think that each person is counted as an instruction number?


#6

Here is my code and its working fine... :smile:

// 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);
family[3]= new Person("timmy" , 6);
// loop through our new array
for(i=0; i console.log("Name of family member is " +family[i].name);
}