Skip to content
skillbld
Day 9 of 14 30 minObject literalsMethods & thisJSON

Group related data with objects. Read and change properties, add methods, loop over keys, copy objects safely, and turn them into JSON text to save or send, and back again.

By the end of today you can

  • Create objects and read properties with dot and bracket notation
  • Add, change and delete properties, and add methods
  • Unpack objects with destructuring and copy them with spread
  • Explain why two variables can point to the same object
  • Convert between objects and JSON with JSON.stringify and JSON.parse

What's inside

  • 6 sections
  • 3 diagrams and mind maps
  • 6 code examples you can run
  • 5-question quiz
  1. 1Creating and using objects
  2. 2Methods: functions inside objects
  3. 3Shorthand, destructuring and spread
  4. 4Looping over objects
  5. 5Variables point to objects
  6. 6JSON: data as text

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free
Day 9: Objects & JSON · JavaScript · SkillBld