Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. Object() > Object() Object Instance Properties and Methods

Object() Object Instance Properties and Methods

Object() object instances have the following properties and methods:

Instance Properties (e.g., var myObject = {}; myObject.constructor;):

  • constructor

Instance Methods (e.g., var myObject = {}; myObject.toString();):

  • hasOwnProperty()

  • isPrototypeOf()

  • propertyIsEnumerable()

  • toLocaleString()

  • toString()

  • valueOf()

Note

The prototype chain ends with Object.prototype and thus all of the properties and methods of Object() (shown above) are inherited by all JavaScript objects.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint