Basic JavaScript - Profile Lookup

// Setup
const contacts = [
firstName: “Akira”,
lastName: “Laine”,
number: “0543236543”,
likes: [“Pizza”, “Coding”, “Brownie Points”],
firstName: “Harry”,
lastName: “Potter”,
number: “0994372684”,
likes: [“Hogwarts”, “Magic”, “Hagrid”],
firstName: “Sherlock”,
lastName: “Holmes”,
number: “0487345643”,
likes: [“Intriguing Cases”, “Violin”],
firstName: “Kristian”,
lastName: “Vos”,
number: “unknown”,
likes: [“JavaScript”, “Gaming”, “Foxes”],

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

for(let x=0;x<=contacts.length-1;x++){
if(contacts.firstName == name){
return contacts[prop] ||‘No such property’;
return ‘No such contact’;

// Only change code above this line

console.log(lookUpProfile(“Harry”, “lastName”));

hi there, I see you posted code but no question?

the problem is can not work properly

can you post a link to the challenge and describe what is not working?

thanks for posting the link.

Do you want help understanding the requirements?
Or do you need help understanding something about javascript?

I cannot write the code for you so you will have to ask some questions…

know i solve problem but what doest it mean your question

I’m sorry I didn’t understand your post. Can you rephrase it?