4 out of 6 - Listing Everybody - instructions are wrong


#1


https://www.codecademy.com/courses/building-an-address-book/0/4?curriculum_id=506324b3a7dffd00020bf661#


Just wanted to explain that the instructions are wrong. Codecademy checks your code by running the function list();
If you add it at the bottom you are running it twice.

The code below should run it once:


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


#2

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