#29 So Meta I Can't Take It, can't figure it out


#1


https://www.codecademy.com/en/courses/objects-ii/5/3


This is the error that I keep getting, but can not figure out.
"Oops, try again. Make sure to set hasOwn to Object.prototype.hasOwnProperty('hasOwnProperty')"
then the submit button morphs into a spinning dirtbike tire.


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

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


#2

Remove typeof and just assign the boolean result.


#3

Danke! That worked. I should have trusted my gut and not the hint.


#4

Gracias!! todo función bien en cuanto quité "typeof" . Danke, Thank you, merci.!!


#5

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