Reputation: 2411
This method returns all numerable and non-enumerable properteis as follow: Object.getOwnPropertyNames(Object)
length, prototype, defineProperty, getOwnPropertyDescriptor, defineProperties, create, seal, freeze, preventExtensions, isSealed, isFrozen, isExtensible, getPrototypeOf, keys, getOwnPropertyNames, caller, arguments
But the internal prototype and scope property are not displayed why?What properties are displayed with this method?
Upvotes: 2
Views: 352
Reputation: 161517
The internal prototype is not a property so it doesn't show up. Some browsers expose it as __proto__
, but it is not enumerable and is non-standard.
Similarly, 'internal scope' is not a property, for example you can't do obj['internal scope[[scope]]']. Chrome displays it in the console to be helpful but it a property of the object.
Upvotes: 1