Tell us what’s happening:
Not sure if this lesson is messed up.
Can anyone help me out?
Literally nothing to go off . Looks bugged
Your code so far
var myObj = {
gift: “pony”,
pet: “kitten”,
bed: “sleigh”
city: “Seattle”
};
function checkObj(checkProp) {
var answer = “Not Found”;
if (myObj.hasOwnProperty(checkProp)) {
answer = myObj[checkProp];
}
return answer;
// Only change code above this line
}
The lesson is correct. You changed code outside of the
// Only change code below this line
and
// Only change code above this line
comments.
If you ignore those lines, then you won’t get correct code. It looks like you have copied some old solution.