Objects

  • Objects can store related information about a thing
  • Can later pull out subfields with .something syntax
  • Properties can be added (and removed) over time
const ryan = { name: "Ryan", age: 28, job: "Developer", id: "abc123" };
person.age ++;
console.log(ryan.name) // Prints "Ryan"

19 / 21