Why my solution for lookup challenge not working?

Can anyone please tell me what is wrong in this solution? I have used else if statements instead of if else statement.

function lookUpProfile(name, prop) {
// Only change code below this line
let i=0;

  if((contacts[i].firstName === name)&&(contacts[i].hasOwnProperty(prop)===true)){
    return contacts[i][prop]
  else if((contacts[i].firstName !== name)){
    return 'No such contact'
  else if(contacts[i].hasOwnProperty(prop)===false){
    return 'No such property'
// Only change code above this line

lookUpProfile("Akira", "likes");

Challenge: Profile Lookup

Link to the challenge:

Your for loop will only execute one iteration because as soon as a return statement executes, the function is immediately exited. Basically, with your current code, only the first contact is checked. You need to rethink your current logic to avoid exiting the function too early.