27/33 - nyyyurghhhh


#1

I give up. I have no idea what I did wrong. I... I just... just...

-// 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(family[i].name);
}

HELP MEEEE


#3

hey pigglefurp,
I don't know but is the - at the complete beginning also part of your code? Cause if it is, removing it will probably solve your problem :grin:


#4

An hour. I spent an hour trying to figure out what I had done wrong.

AN HOUR.

And the fact that I left a dash somewhere I shouldn't have fixed it.

60 FREAKING MINUTES.

AND A CLICK OF THE MOUSE AND A SINGLE KEYSTROKE SOLVED IT.

Thank you so much!


#6

Don't worry! I was doing of the last projects in the HTML and CSS course, and I was stuck for about 2 days. I literally had a 3 before the and it was the only thing messing everything up!