Whats wrong >?


#1

var myObj = {
// finish myObj
hasOwnProperty = function (){
name = name;
nickname = nickname;
};

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


#2

The function needs a closing brace where ??? appears.


#3

You don't need a nickname property. its supposed to not have one so the console.log evaluates to false.