Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.21 KB

File metadata and controls

24 lines (17 loc) · 1.21 KB

JS Object Literals; The DOM

Chapter 3: Object Literals (pp.100-105)

  • property - a variable that's part of an object
  • method - a function that's part of an object
  • key - name: value pair in an object
  • . - member operator - accesses/calls a method from an object
  • square bracket can also be used to access methods and properties in an objet
  • this - keyword used when declaring properties and methods in an object. this references the object itself

Chapter 5: Document Object Model (pp.183-242)

  • DOM tree - specifies how a browser should structure pages
  • API - allow programs and scripts to communicate
  • NodeList - a collection of nodes
  • live NodeList - nodelist is updated when the page is updated by your script
  • static NodeList - nodelist stays the same after the script updates the page
  • NodeLists are 'collections', but look like arrays

Article: Understanding The Problem Domain Is The Hardest Part Of Programming

Article: What’s the Difference Between Primitive Values and Object References in JavaScript?