Don't see what needs to be fixed here


#1

Okay, so I did exactly what was said in the instructions for this exercise. But, I ran the code and I had SyntaxError: unexpected token )
There might be other errors with this code, not entirely sure.

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 = 0; i < contacts.length, i++) {
        printPerson(contacts[i]);
    }
};

#2

Hi this part

for (var i = 0; i < contacts.length, i++)

You have a , instead of ; After contacts.length


#3

Thanks. Something so simple. :stuck_out_tongue_closed_eyes: