PROBLEM DOMAIN
OBJECTS
-
“grouping functions and variables in a model”
-
In Objects:
- variables = properties
- functions = methods
How Objects are created? (easy common way)
- using the literal notaion var object name properties(keys&corresponding values) method
DOCUMENT OBJECT MODEL
- DOC : is the set of rules by which a browser creates a model using HTML and JS access and update the content.
- There are 4 types of nodes for DOM trees:
- document
- element
- attribute
- text