Something isn't quite right

Tell us what’s happening:
Does anybody else receive errors when attempting to complete this challenge? I get a banner that “Something isn’t quite right and a report will be sent.”

I am not looking for assistance with my code at this point.

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++) {
for (var j = 0; j < contacts[i].length; j++) {
    if (name == "FirstName") {
        if (prop == contacts.hasOwnProperty(prop)) {
            return contacts.hasOwnProperty(prop);
        }
    }
}
}

// Only change code above this line
}

console.log(lookUpProfile("Akira", "likes"));
console.log(contacts);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36 Edg/86.0.622.43.

Challenge: Profile Lookup

Link to the challenge:

When you see the “Something isn’t quite right” banner, I recommend restarting your browser and/or computer.

Thank you, that resolved the issue.

1 Like