Did i put the(,) in rong why

Tell us what’s happening:

Your code so far


// Setup
var 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(var i=0; i<contacts.length;i++) {
if(contacts[i].FirstName===name) {
return contacts[i][prop]||"Nosuchproperty";
}
}
return "No contact";
}

// Only change code above this line
}

lookUpProfile("Akira", "likes");

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; SM-A105F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Mobile Safari/537.36.

Challenge: Profile Lookup

Link to the challenge:

I’m sorry, but I don’t understand your question. Can you please fill out “Tell us what’s happening” and expand upon what you mean?

I dont no why i did rong please help

What error message are you getting?

can u tell me whts roong

I can if you can tell me what error message you are getting. The tests will give you some error messages.

I post my work in my profile. U can see it muy post

I see your code. I don’t see your error messages.


What do your error messages in the bottom right corner say?

I solve it. Thanks for your time. Yout brother
AHMED FROM middeast

I noticed you wrote “.FirstName” instead of “.firstName”. Is that the issue?