const myObj = {
gift: "pony",
pet: "ketten",
bed: "sleigh"
};
function checkObj(checkProp) {
// Only change code below this line
if (myObj.hasOwnProperty(checkProp)){
return myObj[checkProp];
}else {
return "Not Found"
}
// Only change code above this line
}
This is not the function you were told to write. It is missing one argument.
Also, the instructions don’t say anything about checking some variable named myObj
.
1 Like
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.