Objects can have any number values stored as properties (specified by
Returns the value stored in this at the specified
propertyName. This is the same as the
. style access but also allows the property name to be specified at runtime using a String of being hardcoded and allows access to properties that are invalid identifiers (such as including spaces or starting with a number).
this has a property named
propertyName stored on it. This method can be used to see if a property is set on the object, even if the value is set to
undefined. Properties stored in the prototype chain do not count.
this is in the prototype chain of
true if the property named
this is enumerable and should be returned during a
for (x in y) loop.
Returns a locale specific (if possible) string representation of
Returns a string representation of
this. This method is called each time the object is used in a place a string is expected. Define your own
toString to give a better string representation to your objects.
Returns a new
Object with prototype equal to
prototype to create an object with no prototype. Calls
defineProperties(obj, propertyDescriptors) with the new object if
propertyDescriptors is specified.
For each property on
propertyDescriptors, defines a new property on
obj with the same name and supplied
Defines a new property with name equal to
obj with the supplied descriptor. Returns
PropertyDescriptor that describes the
propertyName property on
Array of the names of all properties set on
obj including those that are not enumerable.
preventExtensions was called on
obj. A non-extensible object cannot have new properties added to it.
freeze was called on
obj. A frozen object cannot have new properties added and existing properties cannot be modified.
seal was called on
obj. A sealed object cannot have new properties added to it but the value of existing properties can be changed.
Array containing the enumerable properties on
Prevents new properties from being added to
freeze, existing properties can be modified. Returns