Find a course
Age level: Kids (7–11)BeginnerTechnology & Programming

Coding for Kids

Algorithms, loops, if-then, variables and bug hunting, then write real JavaScript

⏱ 1 h3 modules · 7 lessons46 practice questionsFinal exam: 10 questions
First name and initial are enough.

For parents and teachers: no sign-up and no personal data. The certificate asks only for a first name and an initial. Progress is stored only in this browser.

Included with this course

Your certificate for this course

Finish the 7 lessons (about 1 h) and pass the 10-question final exam. Your Certificate of Achievement is ready the moment you pass.

  • Your name and this course titleIn big, bold letters
  • Grade: Pass, Merit or DistinctionOn the star medal, with your score
  • Unique ID and QR codeAnyone can verify it in seconds
  • Score report PDFModule-by-module results and exam score
  1. Lessons7 lessons
  2. Final exam10 questions · 70% to pass
  3. CertificatePDF + score report

What you will learn

  • Explain what code, a program and an algorithm are
  • Write a clear step-by-step algorithm and put steps in the right order
  • Use a loop to repeat instructions instead of writing them again and again
  • Use if-then-else to make a program choose what to do
  • Store and change information in a variable, like a game score
  • Find and fix bugs in short programs
  • Write and test small JavaScript functions

About this course

Every video game you play, every app on a tablet and every robot vacuum works because someone wrote code: a list of instructions a computer can follow. In this course you will learn to think like a coder, and then you will write real code yourself.

First you will find out why computers need super exact instructions, and what goes wrong when a robot follows a sandwich recipe word for word. You will write algorithms, step-by-step plans, and guide a robot across a grid. Then you will learn the building blocks that every programming language uses: loops that repeat, if-then choices, variables that remember things like your game score, and functions that bundle steps into one handy command. Finally you will become a bug detective and learn how real programmers find and fix mistakes.

Along the way you will type short pieces of real JavaScript, the language that runs inside every web browser, and press a button to test them. Do not worry if you have never typed code before. Each puzzle comes with starter code, a hint and the answer if you get stuck.

The course is made for kids ages 8 to 12. Steps are short: read a bit, then solve a puzzle. At the end there is a short quiz. Pass it and you earn a Certificate of Achievement with your first name on it.

For parents and teachers: the course takes about an hour, needs no account or downloads, and the code runs safely inside the browser. It covers the core ideas behind block coding tools like Scratch and makes a gentle first step into text-based programming.

Syllabus

  1. Thinking Like a Coder

    Learn what code really is, why computers need exact instructions, and how to write step-by-step algorithms that a robot can follow.

    1. What Is Coding?9 min
    2. Algorithms and Sequences9 min
  2. Building Blocks of Code

    Meet the three tools inside almost every program: loops that repeat, if-then choices, and variables that remember things.

    1. Loops: Repeat It!9 min
    2. If-Then-Else: Making Choices9 min
    3. Variables: Boxes That Remember9 min
  3. Functions and Debugging

    Bundle steps into reusable functions, then become a bug detective and learn how real coders find and fix mistakes.

    1. Functions: Your Own Commands8 min
    2. Debugging: Be a Bug Detective9 min
  4. Final exam and certificate

    10 questions drawn from a pool of 18. Score 70% or more to pass; retakes get a fresh set of questions.

Try a sample question

Why did the robot drop the whole jar on the bread bag?

  1. The robot was being silly on purpose
  2. Robots hate sandwiches
  3. The robot was broken
  4. The instruction was not exact enough
Show the answer

Answer: D. The instruction was not exact enough

The robot followed the words exactly. It needed exact steps like "open the bag, take out two slices, open the jar..." Computers never guess what you meant.

Code
Instructions written in a language a computer can follow.
Program
A complete set of code that does a job, like a game or an app.
Algorithm
A step-by-step plan for solving a problem or doing a task.
Sequence
Steps that happen one after another in a set order.
Loop
Code that repeats a set of instructions several times.
Conditional
An if-then instruction that lets a program choose what to do.

Frequently asked questions

What is coding?

Coding means writing instructions for a computer in a language it understands. The instructions are called code, and a full set of them that does a job is called a program.

What age is good for learning to code?

Kids can start with picture-based coding games at about 5 to 7 and move to block coding and simple text code around 8 to 12. This course is written for ages 8 to 12.

Do I need to install anything?

No. Every code puzzle runs right in your web browser. You only need a computer or tablet with a keyboard to make typing easier.

Why does this course use JavaScript?

JavaScript runs in every web browser, so you can try it right away. The big ideas you learn here, like loops, if-then and variables, work the same way in Scratch, Python and almost every other language.

What should I learn after this course?

Try making a small game or animation in a block coding tool, or keep going with JavaScript or Python. Building your own small projects is the best way to get better.

Is coding only for kids who are good at math?

No. Coding uses some counting and logic, but it is mostly about breaking problems into small steps, being creative and not giving up when something breaks.

Sources and further reading

Related courses

Adults & professionalsBeginner

JavaScript for Beginners

Variables, functions, arrays, objects, the DOM and async code

Technology & Programming
2 h 10 min12 lessonsCertificate
TeensBeginner

Make Games with JavaScript

Code real browser games with variables, loops, canvas drawing, keys and collisions

Technology & Programming
2 h11 lessonsCertificate
KidsBeginner

Algorithms and Sequences for Kids

Think like a computer: steps, loops, choices, searching and sorting

Technology & Programming
1 h7 lessonsCertificate
TeensBeginner

Python for Teens

Write real programs: games, quizzes and calculators from your first line of code

Technology & Programming
1 h 55 min10 lessonsCertificate
Adults & professionalsBeginner

Python for Beginners

Write real programs with variables, loops, lists, dictionaries and functions

Technology & Programming
2 h 15 min12 lessonsCertificate
Adults & professionalsBeginner

Git and GitHub Basics

Track changes, branch safely and collaborate with pull requests

Technology & Programming
2 h12 lessonsCertificate