What nickname means here?



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


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


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