29/30 Oops, try again. It looks like you have an error in your code. Here's the message: TypeError: Object.prototype.hasOwnProperty is not a function


#1

Here is my code what is wrong it gives me
this:
object TypeError: Object.prototype.hasOwnProperty is not a function

Oops, try again. It looks like you have an error in your code. Here's the message: TypeError: Object.prototype.hasOwnProperty is not a function

// 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);


#2

the code runs without errors
you can RUN IT HERE


#3

it doesnt work for me in the lesson


#4

copy the code you have , refresh the page and reset the code then paste what you copied and run it again


#5

Thanks so much i was so confused read every q and a page clawing for answers


#6

please explain to me this code,am not grasping what hasOwnProperty has got to do with Object.prototype...