Unable to pass test object properties :
I need someone to run me through ,
I am finding it difficult to complete the bellow code using the object and the property’s declared as an argument within the function.
**Your code so far**
function checkObj(obj, checkProp) {
// Only change code below this line
({obj:"checkProp"}, "obj");
if(obj.hasOwnProperty("checkProp")){
return obj[checkProp];
}
else{
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/99.0.4844.84 Safari/537.36
Thanks,
After deleting the line the code is not yet perfect .How do I go about the rest? I have been struggling with this since yesterday and I have done all the magic