JS: Problem Domain, Objects, and the DOM
JS
JavaScript Object Basics
- An object in JS is collection of info, like a profile on fb but much more in depth.
- its good for sending multiple items like a server sending an order to a database and is easier to work with than an array.
- objects are like arrays but instead of attaching data to values like 0 and 1, it uses its name.
- if the object property is held in a variable you have to use bracket notation over dot notation
- This reffers to the object that is currently being used
intro to DOM
Intro to DOM
- DOM is a program interface for web docs
- JS uses DOM to be able to interact with documents and their elements.