0Pricing
Javascript for Kids · Lesson

A List of Animals

Store animal clues.

Welcome, Animal Detective! 🕵️

Get ready to build a super fun Guess the Animal game! 🐶🐱🦁

The computer will think of an animal, give you clues, and YOU try to guess it. But first... we need a place to keep all our animals!

What is a List? 📝

A list (we call it an array) is like a toy box that holds lots of things. 🧸

We use square brackets [ ] and put commas between each thing.

let animals = ["dog", "cat", "lion"]
console.log("My animal box has:", animals)

All lessons in this course

  1. A List of Animals
  2. Giving Clues
  3. Checking Guesses
  4. You Got It!
← Back to Javascript for Kids