Javascript for Kids · Lesson

Be a Robot!

Computers do EXACTLY what you say — practice being super clear.

Lesson 3 of 413 steps

Be a Robot! is a free Javascript for Kids lesson on CoddyKit. This is lesson 3 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, and your progress syncs across the web and the CoddyKit app. The Javascript for Kids course includes 4 lessons in total.

Beep Boop! Robot Time! 🤖

Hello, clever coder! 👋🤖

Today we play a fun game: Be a Robot! 🎮

Robots do EXACTLY what they are told. Nothing more, nothing less! ⚙️

Let's see how tricky that can be! 😄

Robots Can't Guess 🚫🧠

People are smart and can guess what you mean. 😊

But robots and computers CAN'T guess! 🤖

They only follow your exact words. 📋

So you have to be super clear! 🔍

Tell the Robot to Walk 🚶

You say: "Walk!" 🗣️

The robot stands still. 🤖

Why? You didn't say HOW to walk! 🤔

Better: "Lift your left foot. Step forward. Now your right foot!" 👣

The Door Bonk! 🚪

You tell the robot: "Walk forward 10 steps!" 👣

But there's a door in the way! 🚪

The robot walks straight into it... BONK! 💥😂

You forgot to say "open the door first"! Robots do EXACTLY what you say! 🤖

Make a Jam Sandwich 🥪

Tell the robot: "Put jam on the bread." 🍓

The robot puts the WHOLE jar on top of the bread! 😱

You meant SPREAD the jam... but you didn't say so! 🤣

Clear words save the sandwich! 🥪

Be Super Clear ✨

To talk to a robot, use tiny, clear steps. 🐜

Don't say: "Clean up." 🤷

Say: "Pick up the red block. Put it in the box. Pick up the blue block..." 🧱

Clear steps = happy robot! 🤖💛

Robot Goes to the Chair 🪑

Let's guide the robot to a chair! 🪑

  • Take 3 steps forward 👣
  • Turn right 👉
  • Take 2 steps forward 👣
  • Sit down! 🪑

Each step is clear, so the robot gets there! 🎉

Exactly What You Say ⚙️

Here is the robot rule: 🤖

It does exactly what you say — even if it's silly! 😆

Say "jump 100 times" and it jumps 100 times! 🦘

That's the power AND the trick of robots! ⚡

Spot the Missing Step 🔍

Coders are great at finding missing steps! 🕵️

"Pour the cereal. Eat it." 🥣

Wait — where's the MILK step? 🥛

And the SPOON? 🥄

You found the missing steps! Nice work! 👏

You Think Like a Computer! 🧠

When you give clear, exact steps, you are thinking like a computer! 🤖

This is one of the most important coder skills! 🌟

You are already doing it! 🤩

Robot Master! 🦾

Look how far you've come! 🎉

You learned that robots:

  • Can't guess 🚫🧠
  • Do exactly what you say ⚙️
  • Need tiny, clear steps 🐜

You're a real robot master now! 🦾

Quick Check

Here comes a fun question! You're awesome! 😊

Beep Boop, Great Job! 🤖

Hooray, robot master! 🥳 Today you learned:

  • Robots can't guess 🚫🧠
  • They do exactly what you say ⚙️
  • Clear, tiny steps work best 🐜
  • Spotting missing steps is a coder skill 🔍

Next, you write YOUR OWN algorithm! 📝 See you there! 👋

Free to start

Learn JavaScript with an AI tutor — free

Write and run real code in your browser, get instant help from a 24/7 AI tutor, and pick up where you left off on the web or in the app.

Courses
35
Lessons
140

Frequently Asked Questions

Is the “Be a Robot!” lesson free?

Yes — the full text of “Be a Robot!” is free to read here on the web. 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. The Javascript for Kids course includes 4 lessons in total.

What will I learn in “Be a Robot!”?

Computers do EXACTLY what you say — practice being super clear. 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, so you can start here or from the beginning and move at your own pace. This is lesson 3 of 4.

How long does the “Be a Robot!” 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. What Is an Algorithm?
  2. Why Order Matters
  3. Be a Robot!
  4. Write Your Own Algorithm
← Back to Javascript for Kids