growthmindsit

Problem Domain, Objects, and the DOM

object

an object is a standalone entity, with properties and type. Compare it with a cup, for example. A cup is an object, with properties. A cup has a color, a design, weight, a material it is made of, etc. The same way, JavaScript objects can have properties, which define their characteristics.

object creating (literal notation)

accessing an object and dot notation

you can access the proparties or method using dot notation .you can also access the properties with square brackets .

doucment object model _DOM

When a web page is loaded, the browser creates a Document Object Model of the page.The HTML DOM model is constructed as a tree of Objects:

DOM trees have four types of nodes: