What Is an Object?
Group related info.
Meet the Treasure Chest! 🪙
Imagine a magic treasure chest 🧰 that can hold lots of things at once! In JavaScript we call this an object.
An object groups related info together, like a chest holding gold, gems, and a map all in one place!
Why Group Stuff? 🤔
What if you wanted to remember everything about your dog 🐶? Its name, age, and color!
You could make 3 separate boxes... OR put them all in ONE chest. Objects let you keep related things together!
All lessons in this course
- What Is an Object?
- Reading Properties
- Changing Properties
- A Pet Object