Profile Lookup: I'm stuck at this exercice, Am I missing something?

Tell us what’s happening:
Describe your issue in detail here.

**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
if (name && prop) {
    return lookUpProfile[prop];
} else if ( !== prop) {
    return "No such contact";
} else if (lookUpProfile.hasOwnProperty[prop] === false) {
    return "No such property";
} else {
    return 1;

// Only change code above this line

lookUpProfile("Akira", "likes");
**Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Safari/605.1.15

Challenge: Profile Lookup

Link to the challenge:

this is kind of everything your function does, and considering that lookUpProfile is the function name, lookUpProfile[prop] is always undefined, so you are never returning anything else than undefined

1 Like
that condition your checking are all worng```

Thanks for the response, i will check my code and start over, i think i start in a wrong direction, i’ll we update my post if i’m still stuck.