0Pricing
Javascript for Kids · Lesson

A Pet Object

Describe a pet.

Adopt a Pet! 🐾

Time for a fun project! Let us build a pet using everything we learned about treasure chests (objects).

We will describe our pet, read its info, and even take care of it! 🐶🐱

Make the Pet Chest 🧰

First we build the object. Our pet has a name, type, and age!

let pet = {
  name: 'Coco',
  type: 'puppy',
  age: 1
}
console.log(pet)

All lessons in this course

  1. What Is an Object?
  2. Reading Properties
  3. Changing Properties
  4. A Pet Object
← Back to Javascript for Kids