Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
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
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Testing Objects for Properties
Hey! Welcome to the freeCodeCamp’s community forums.
Learning to describe the bugs or issues you’re facing is a great skill to have in a developer, it may seem hard at first, but you should at least provide a brief summary of what you are trying to accomplish and what’s the error that shows up when you try to run your code.
You can add any and all of the questions that you might have in the following section
Tell us what’s happening:
It will also make it easier for others to help you if they know the problem beforehand.