ποΈ Objects for Kids
An object is like a Pokemon card β lots of facts about one thing.
A Pokemon Card
A Pikachu card has: name = "Pikachu", type = "Electric", level = 25, hp = 60. All of those facts are bundled together. That bundle is an object.
Reading the Facts
You can ask the object for any fact: pikachu.name or pikachu.type. The dot between them is like asking "tell me your...".
Many Objects
You can have a whole pile of cards (an array of objects!) β each card is its own object with its own facts.
π―
Try this!
Now you try! Make an object that describes you: name, age, favorite color, and pet (or no pet).
π¨βπ©βπ§
For grown-ups
Parent/teacher tip: Trading cards, character sheets, and recipe cards are all great real-world objects.