I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
// Only change code below this line
var obj = {
gift: "pony",
pet: "kitten",
bed: "sleigh"
};
function checkObj(obj, checkProp) {
if (obj.hasOwnProperty(checkProp)) {
return obj[checkProp];
} else {
return "Not Found"
}
}
console.log(checkObj("bed"));
// Only change code above this line
It’s my first start into the world of programming. It’s good to have a great people support which ease the way of learning despite hurdles, it’s a great way to explore and learn .
I will keep this lesson in my mind long way to go.
Thank you again for the solution.
God bless you.