Tell us what’s happening:
Describe your issue in detail here.
what’s the issue with this ?
**Your code so far**
function checkObj(obj, checkProp) {
// Only change code below this line
checkObj.hasOwnProperty("obj");
checkObj.hasOwnProperty("checkProp");
return "Not Found";
// Only change code above this line
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
In this line, you are checking if checkObj (which is a function) has the property named "obj". Does this match the instructions?
Then here you check if checkObj (again, the function) has the property named checkProp (not the property with the name stored in the variable checkProp)
No matter what happens on the previous two lines though, you always return the same string.