29......Why the Extra String?


#1

I have passed it already, but I do not know why there is an extra "hasOwnProperty"....string.

var prototypeType = typeof Object.prototype;
console.log(prototypeType);

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


#2

The method takes a string. As we know, all attribute names are strings.


#3

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