Tutorials » Javascript tutorials »

JavaScript Objects


This article explains introduction to JavaScript objects



Object


An object is collection of properties and methods. For example in our real world book is an object .It s collection of pages. It has parts like pages, Cover. It composes of methods like Open () and close (). Here properties and methods related to single object called book.

Window object is the base object to all JavaScript Objects.

Document object is inherited from window object.

We can create our own objects in JavaScript but most of the time we use built in objects only.

JavaScript supports several built-in objects .These are defined for the developer in order to work with WebPages, compute and access the Web browser.
Some of the mainly used objects are:

  • String
  • Date
  • Math
  • Array
  • Object.



    For complete listing of JavaScript objects refer JavaScriptObject Hierarchy




  • Next Chapter: The JavaScript String object
    Previous Chapter: Calling JavaScript from some other page
    More Chapters: Javascript Tutorials
    More Tutorials: Tutorial Index



    Top Contributors
    Today
      Last 7 Daysmore...

      Awards & Gifts

      Online Members

      More...
       
      Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India