0Pricing
Javascript for Kids · Lesson

Collecting Words

Ask for words.

Collecting Words is a free Javascript for Kids lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Javascript for Kids learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Let's Make Silly Stories! 📖

Hi story maker! 🌟 Have you ever played a game where you fill in funny words and get a goofy story? 😂

Today we start building our very own Story Maker! First step: collecting words! 📝

Words Live in Variables 📦

To save a word, we put it in a variable. Think of a variable like a labeled box! 📦

Here we save an animal name in a box called animal. 🐶

let animal = 'dog';
console.log(animal);

Collect More Words 🎒

A great story needs lots of words! Let's collect a few different ones. 🎒

Each word gets its own cozy box. 📦📦📦

let animal = 'cat';
let place = 'moon';
let food = 'pizza';
console.log(animal);
console.log(place);
console.log(food);

Naming Our Boxes 🏷️

The box name tells us what kind of word goes inside! 🏷️

color holds a color, name holds a name. Nice and tidy! ✨

let color = 'purple';
let name = 'Zoey';
let number = 'seven';
console.log('Color: ' + color);
console.log('Name: ' + name);
console.log('Number: ' + number);

An Adjective Box 🌈

Adjectives are describing words like silly, giant, or sparkly! 🌈

They make stories extra fun! Let's save one. 😄

let adjective = 'sparkly';
console.log('Our describing word is: ' + adjective);

A Verb Box 🏃

Verbs are action words like jump, dance, or fly! 🏃

Let's collect an action word too. 💃

let verb = 'danced';
console.log('Our action word is: ' + verb);

Collecting a Whole Set 🧰

Now let's gather a full set of story words at once! 🧰

We will use all of these to build a silly story later. 🎉

let name = 'Max';
let animal = 'dragon';
let place = 'school';
let adjective = 'wobbly';
console.log('We collected: ' + name + ', ' + animal + ', ' + place + ', ' + adjective);

Showing Our Words Nicely ✨

Let's print each collected word on its own line with a label! ✨

This helps us check that every box has a word inside. 🔍

let hero = 'Luna';
let pet = 'bunny';
let snack = 'cookies';
console.log('🦸 Hero: ' + hero);
console.log('🐰 Pet: ' + pet);
console.log('🍪 Snack: ' + snack);

Changing a Word 🔄

You can put a new word in a box anytime! 🔄

First the box holds one word, then we swap it for another. Magic! 🪄

let mood = 'happy';
console.log('First mood: ' + mood);
mood = 'giggly';
console.log('New mood: ' + mood);

Lots of Story Words 📚

Great story makers collect LOTS of words! 📚

Here is a big pile of words ready for our story. 🎊

let person = 'Captain Sam';
let animal = 'penguin';
let place = 'jungle';
let object = 'umbrella';
let sound = 'BOING';
console.log(person + ' / ' + animal + ' / ' + place + ' / ' + object + ' / ' + sound);

You Collected Words! 🏆

Amazing work, word collector! 🏆 You learned that:

  • 📦 Variables are boxes that hold words
  • 🏷️ Good names like animal keep things tidy
  • 🔄 You can change a word anytime

Next lesson: we put these words into a story! 📖

Quick Check ✅

Brain time! 🧠 Where do we save a word so we can use it in our story?

Lesson Recap 🎀

Super job, story starter! 🎀 Today you learned:

  • 📦 Save words in variables
  • 🏷️ Use clear names like animal or place
  • 🎒 Collect lots of words for a fun story

Next: filling the story template! 📖

Frequently asked questions

Is the “Collecting Words” lesson free?

Yes — the full text of “Collecting Words” is free to read here on the web, and the Javascript for Kids course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Javascript for Kids course, upgrade to CoddyKit PRO.

What will I learn in “Collecting Words”?

Ask for words. You practise Javascript for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Javascript for Kids?

No prior experience is required. Javascript for Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Collecting Words” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Javascript for Kids lesson?

Yes. Every Javascript for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Collecting Words
  2. Filling the Story
  3. Showing the Story
  4. Your Own Story
← Back to Javascript for Kids