Profile Lookup:Where did i go wrong

thanks this worked for me Finally
function lookUpProfile(name, prop){
// Only change code below this line
    for (var i = 0;i < contacts.length; i++){
// nested if statement
        if ( name == contacts[i].firstName){

                if(contacts[i].hasOwnProperty(prop)===true){
                    return contacts[i][prop];

                }else if (contacts[i].hasOwnProperty(prop)===false){

                    return "No such property";

                }
        }
// end of nested if statement
    } // end of for loop

    return "No such contact";
// Only change code above this line

} // end of lookupprofile function

// Change these values to test your function
lookUpProfile("Akira", "likes");