Help on for loop javascript

please help with this challenge i am stuck.

Hi, can we see your code? What seems to be the problem?

function lookUpProfile (name, profile) {
for (var i = 0; i < contacts.length; i ++) {
if (contacts[i].firstName === name) {
if (contacts[i].hasOwnProperty(prop)) {
return contacts[i][prop];
} else{
   return "No such property";
return "No such contact";

console.log(lookUpProfile("Akira","address"));// returns "no such property"
console.log(lookUpProfile("Kristian","lastName")); // return "Vos"
console.log(lookUpProfile("Harry","likes")); // return " "

this code only passes two variables.

Thank you @camperextraordinaire for the wonderful lesson. am new to coding.