reading-notes

My reading notes


Project maintained by brandomoki Hosted on GitHub Pages — Theme by mattgraham

Read Class-06

JavaScript Object Basics

  1. How would you describe an object to a non-technical friend you grew up with?

    • An object is a way of storing named values in an organized way that is in no particular order.
  2. What are some advantages to creating object literals?

    • Advantage is being able to call individual items by name
  3. How do objects differ from arrays?

    • Arrays are stored in index order objects are not. Objects store strings to values in the same manner as arrays
  4. Give an example for when you would need to use bracket notation to access an object’s property instead of dot notation.

    • If we needed to access an objects property using a variable
  5. Evaluate the code below. What does the term this refer to and what is the advantage to using this?

    • this refers to each property within an object. Advantages is this can be used to call any property paired with its key

Introduction To The DOM

  1. What is the DOM?

    • The Document Object Model (DOM) is a programming interface for web documents. This allows programs to change parts of the document and enter new info\
  2. Briefly describe the relationship between the DOM and JavaScript.

    • DOM breaks down the html document and allows JS to change and or interact with them.