29\30 So Meta I Can't Take It!


#1

https://www.codecademy.com/en/courses/objects-ii/5/3?curriculum_id=506324b3a7dffd00020bf661

I cannot understand about what speech in it exercise, and accordingly to understand that it can not is necessary to make...


#2

Hello, I am sorry but I am not sure what you are asking? Would you be able to provide more details, or perhaps even the code?

Thank you, and Happy Learning!
@AlexCommunityMgr
-Codecademy Community Manager


#3

Hello Alexcommunitymgr,

What's the actual task in 29/30?
What's wrong about my code?

// what is this "Object.prototype" anyway...?
var prototypeType = Object.prototype
console.log(prototypeType);

// now let's examine it!
var hasOwn = prototypeType.hasOwnProperty("hasOwnProperty");
console.log(hasOwn);

Thank you


#4

okay:

This was helpful http://discuss.codecademy.com/t/29-30-so-meta-i-can-t-take-it/12912/5


#5

The task is to first set the type of Object.prototype i.e "object" to the variable "prototypeType" and then check whether the Object.prototype has a property called "hasOwnProperty"

Here's the code:

// what is this "Object.prototype" anyway...?
var prototypeType = typeof Object.prototype
console.log(prototypeType);

// now let's examine it!
var hasOwn = Object.prototype.hasOwnProperty("hasOwnProperty");
console.log(hasOwn);

Submit....

The errors generated are more clearer.


#6

typeof( Object.prototype ) !== typeof Object.prototype