7/30


#1

Hi,

I do not know how to set up a method to print true/false

var myObj = {
// finish myObj
name: 'name'
hasOwnProperty:function() {

}
};

console.log( myObj.hasOwnProperty('name') ); // should print true
console.log( myObj.hasOwnProperty('nickname') ); // should print false


#2

Hi,

you do not need the hasOwnProperty:function(){} part in the myObj variable, if you take that out it should work

Thanks

Keith


#3

You don't need to create a function for hasOwnProperty. The only thing you gotta do is create a name property and press Save & Submit Code.