# Testing Objects for Properties has a bug

Using “dot” notation doesn’t work to recall the property, but using bracket notation works just fine. This appears to be a bug. Dot notation was working just fine prior to this example.

``````// Setup
var myObj = {
pet: "kitten",
bed: "sleigh"
};

function checkObj(checkProp) {
if ( myObj.hasOwnProperty(checkProp) ) {
return myObj.checkProp;
}
}

// Test your code by modifying these values
checkObj("bed");
``````

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0`.