4. Listing Everybody


#1

I'm having some issues with my code. I keep receiving an Oops, try again. Did you remember to call list(); Did i not do that at the end?


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

list();


#2

HI this line

console.log(printPerson(contactslength[i]))

this part

contactslength[i]

change the contactslength with just contact ....then here

....; i < contactsLength.length;...

remove .length


#3

thank you so much!!!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.