7/30 Help!


#1

Hi.
Help Me!!!

var myObj = {
// finish myObj

};

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


#2

var myObj = {
// finish myObj
name: 'name',

};

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