reading-notes

Problem Domain, Objects, and the DOM

Understanding the problem

Object Literals

property - properties tell us about the object

method - Methods reresent tasks that are associated with an object

key - properties and methods have a name and value that is called a key

the value of a property can be a string, boolean, and array , or another object.

the value of a method is always a function

Creating an Object

Literal notaion is the easiest and most popular way to create objects

Dom

The Document Node

Element Node

to access the dom tree you start by looking at elements