# Profile Lookup(Potential bug with FFC IDE)

**URL:** <https://forum.freecodecamp.org/t/profile-lookup-potential-bug-with-ffc-ide/311026>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [September 1, 2019, 2:09pm UTC](https://forum.freecodecamp.org/t/profile-lookup-potential-bug-with-ffc-ide/311026 "2019-09-01T14:09:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kmolina009](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kmolina009/32/118982_2.png) [@Kmolina009](https://forum.freecodecamp.org/u/Kmolina009)\
**Post date:** [September 1, 2019, 2:09pm UTC](https://forum.freecodecamp.org/t/profile-lookup-potential-bug-with-ffc-ide/311026/1 "2019-09-01T14:09:02Z")

</div>

**Tell us what’s happening:**  
Hello Everyone,

I just want to make this post because I’m experiencing an issue with what might FCC’s IDE.  
I say this because I have actually tested my code in other editors(replit, jsbin, firefox and chrome’s console)  
When I input my answer for this challenge on FCC’s IDE everything passes except for the last set of  
params( `"Akira", "address"`)

What’s interesting is that if I console.log this answer it does return “No such property”(The intended output)

Does anyone know what’s going on or encountered an error like this?

**Your code so far**

```auto
//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(let i = 0; i < contacts.length; i++){
      if(contacts[i].firstName === name ){
        if(contacts[i].hasOwnProperty(prop)){
          return contacts[i][prop]
        }else {
          return "No such proptery"
        } 
    }
  };
      return "No such contact"
} 
// Change these values to test your function
lookUpProfile("Akira", "likes");

```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0`.

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/profile-lookup)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![wolf3d](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/wolf3d/32/123099_2.png) [@wolf3d](https://forum.freecodecamp.org/u/wolf3d)\
**Post date:** [September 1, 2019, 2:29pm UTC](https://forum.freecodecamp.org/t/profile-lookup-potential-bug-with-ffc-ide/311026/2 "2019-09-01T14:29:35Z")

</div>

Hi. there is a small typo on line 37 🙂

change

> ```
> return "No such proptery"
> 
> ```

to

> return “No such property”

it should work as expected afterwards 🙂

---

<div class="post-metadata">

**Author:** ![Kmolina009](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kmolina009/32/118982_2.png) [@Kmolina009](https://forum.freecodecamp.org/u/Kmolina009)\
**Post date:** [September 1, 2019, 2:51pm UTC](https://forum.freecodecamp.org/t/profile-lookup-potential-bug-with-ffc-ide/311026/3 "2019-09-01T14:51:50Z")

</div>

Thank you so much,  
I can’t believe I didn’t catch that 🤣

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 25, 2021, 12:17pm UTC](https://forum.freecodecamp.org/t/profile-lookup-potential-bug-with-ffc-ide/311026/4 "2021-01-25T12:17:27Z")

</div>


