*Hello. Not sure why my code isn’t passing. Please help. Thank you.
Your code so far
function checkObj(obj, checkProp) {
// Only change code below this line
if (checkObj.hasOwnProperty(checkProp)) {
return checkObj[checkProp];
} else {
return "Not Found"
}
// Only change code above this line
}
Challenge: Basic JavaScript - Testing Objects for Properties
Link to the challenge: