Object is Just like variable. Like we see variable store data. So that object can also do same thing. But there are some difference between variable and object.
Variable can store data.
Object can store more than one data at once. In object data store by properties. And object also contain method and the role of method is do some process on data that take by properties.
Note:-variable can store only data, but object contain data and method both.
DOM(Document Object Model):-
Dom object represent various components of the browser and HTML dOcument.
like window object etc.
Object that is created by programmer. For example we create Person Object. that maintain person information.
Dom is use:-
To making pages dynamic.
To open new windows
To modifiy text within the page dynamically.
To load new page into the browser. etc.
Given picture show Dom hierarchy.
When we use an object then we use parent object and then child object separated by dot(.)
example to acces image object
myimage is name of html img tag.
Custom object create by Programmer.we discuss custom object in later section.