Do not change the signature of the function, do not remove any of the parameters (do not remove obj). This is the function you are provided in the starter code.
function checkObj(obj, checkProp) {
// Only change code below this line
return "Change Me!";
// Only change code above this line
}
The object you are testing for properties on is passed to the obj parameter, use that and do not create your own object.
We have to see your code. But I can tell you right now it will pass if you do what I said.
Add back the obj parameter.
Remove the object you created inside the function.
When I do that with your code we are left with this.
function checkObj(obj, checkProp) {
// Only change code below this line
if (obj.hasOwnProperty(checkProp)) {
return obj[checkProp];
} else {
return "Not Found";
};
}