It looks like your list function didn't console.log "Bob Jones". Did you remember to call list(); after creating it?


#1

var bob = {
    firstName: "Bob",
    lastName: "Jones",
    phoneNumber: "(650) 777-7777",
    email: "bob.jones@example.com"
};

var mary = {
    firstName: "Mary",
    lastName: "Johnson",
    phoneNumber: "(650) 888-8888",
    email: "mary.johnson@example.com"
};

var contacts = [bob, mary];

function printPerson(person) {
    console.log(person.firstName + " " + person.lastName);
}

var list = function(){
        var contactsLength = contacts.length;
        for(var  i; i<contactsLength;i++){
        printPerson(contacts[i]); 
}
};
list();

#2

Hey @terablaster81305! Just a minor fix :smile: . Here in your for loop do you see something wrong?

? Yup you forgot to initalize your variable i to 0, so it should look like this

for(var i  = 0 i; i<contactsLength;i++){
        printPerson(contacts[i]); 
}