What nickname means here?


#1



https://www.codecademy.com/courses/objects-ii/1/2?curriculum_id=506324b3a7dffd00020bf661#


I'm getting green however in preview says true and false below it.
Instructions says avoid giving an object nickname. I don't understand what nickname means here.


var myObj = {
    name: "Optimus Prime"// finish myObj
    
};

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


#2

Ohh .... I get it now. It just says not to type nickname instead of name. This is silly.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.