reading-notes

Class 06 Reading Notes

Why this is important

JavaScript Object Basics

  1. An object is like a having a seperate shelf for books of the same genre. “An object is a collection of related data and/or functionality…consist of several variables and functions” source

  2. Some advantages of creating object literals are that it is more efficient and it is easier to work with than an array. Object Literal: “Written out the object contents as we’ve come to create it” source

  3. Objects are compartmentalized based off of the keys and values. They’re easier to understand what the role of the object is.

  4. An example of when you would need to use bracket notation to access an object’s property is if an object property name is held in a variable.

  5. this refers to the current object the code is being written inside and the advantage being that if you create more than one object, it enables you to use the same method defintion for every object you create.

Introduction to the DOM

Things I want to know more about

In class lecture