Only valid for contact[0] not for contact[1] or [2]

function lookUpProfile(name, prop){
// Only change code below this line

for (var i = 0; i < contacts.length; i++){
if (contacts[i]["firstName"] == name && contacts[i].hasOwnProperty(prop) == true) {
    return contacts[i][prop];
}
else if (contacts[i]["lastName"] == name && contacts[i].hasOwnProperty(prop) == true) {
    return contacts[i][prop];
}
else if (contacts[i]["firstName"] == name && contacts[i].hasOwnProperty(prop) == false) {
    return "No such property";
}
else if (contacts[i]["lastName"] == name && contacts[i].hasOwnProperty(prop) == false){
    return "No such property"
}
else if (contacts[i]["firstName"] || contacts[i]["lastName"] !== name) {
    return "No such contact";
}

}

// Only change code above this line
}

Guys don’t bother. I read the solution. Thanks!