Finding that special someone


#1

Continuing the discussion from Finding that Special Someone:


it says that it is syntax error.


var search = function(lastName) {
    var contactsLength = contacts.length;
        for (var i = 0; i < contactsLength; i++) {
            if(contacts[i].lastName === lastName) {
                printPerson(contacts[i]);
            }
        }
};
search("Jones");


#2

This code passes for me. Can I see the rest of the code?


#3

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