0Pricing
Javascript for Kids · Lesson

Your Own Timer

Change the count.

Your Own Timer is a free Javascript for Kids lesson on CoddyKit — lesson 4 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.

Make Your OWN Timer! ⏲️

Hi time wizard! 🌟 You learned how countdowns work with setTimeout. ⏲️

Now YOU control the clock! 🎛️ Let's build your very own countdown timer! 🚀

Remember setTimeout ⏳

setTimeout waits a little, then does something! ⏳

The number is the wait time in milliseconds. 1000 = 1 second! ⏱️

setTimeout(function() {
  console.log('Time is up! ⏰');
}, 1000);

Pick Your Start Number 🔢

A countdown needs a starting number! 🔢

Let's begin at 3. You can pick any number you like! 😄

let count = 3;
console.log('Starting at: ' + count);

Count Down One Step ⬇️

To count down, we make the number smaller! ⬇️

count = count - 1 takes away one. 🪄

let count = 3;
console.log(count);
count = count - 1;
console.log(count);

Wait Between Numbers ⏲️

Real countdowns wait between numbers! ⏲️

We use setTimeout to pause for one second. 😎

console.log(3);
setTimeout(function() {
  console.log(2);
}, 1000);

A Full Little Countdown 🚀

Let's count 3, 2, 1, blast off! 🚀

Each setTimeout waits a bit longer. ⏳

console.log(3);
setTimeout(function() { console.log(2); }, 1000);
setTimeout(function() { console.log(1); }, 2000);
setTimeout(function() { console.log('Blast off! 🚀'); }, 3000);

Change the Start Number 🎛️

Your timer, your rules! 🎛️ Start from 5 instead of 3!

Just add more steps for a longer countdown. ⏱️

console.log(5);
setTimeout(function() { console.log(4); }, 1000);
setTimeout(function() { console.log(3); }, 2000);
setTimeout(function() { console.log(2); }, 3000);
setTimeout(function() { console.log(1); }, 4000);

Change the Wait Time ⏩

Want a faster timer? Use a smaller wait! ⏩

500 means half a second. Speedy! 🏎️

console.log(3);
setTimeout(function() { console.log(2); }, 500);
setTimeout(function() { console.log(1); }, 1000);
setTimeout(function() { console.log('Go! 🏁'); }, 1500);

Add a Fun Ending 🎉

End your timer with a fun message! 🎉

Maybe a party, a rocket, or fireworks! 🎆

console.log(3);
setTimeout(function() { console.log(2); }, 1000);
setTimeout(function() { console.log(1); }, 2000);
setTimeout(function() { console.log('🎉🎆 Happy time! 🎆🎉'); }, 3000);

Your Complete Timer ⏲️

Here is a full timer built by YOU! ⏲️

Change the start number and wait time to make it yours! 🌟

let start = 3;
console.log('Get ready! ' + start);
setTimeout(function() { console.log(2); }, 1000);
setTimeout(function() { console.log(1); }, 2000);
setTimeout(function() { console.log('Liftoff! 🚀'); }, 3000);

You Made Your Own Timer! 🏆

Awesome, time wizard! 🏆 You learned to:

  • ⏳ Use setTimeout to wait
  • ⬇️ Count down step by step
  • 🎛️ Change the start number and speed

You finished the Countdown Timer course! 🎉

Quick Check ✅

Brain time! 🧠 What does setTimeout do in our timer?

Lesson Recap 🎀

Super job, timer maker! 🎀 Today you learned:

  • setTimeout waits, then runs
  • ⬇️ Count down by subtracting one
  • 🎛️ Change the start number and wait time

You built your own countdown! ⏲️

Frequently asked questions

Is the “Your Own Timer” lesson free?

Yes — the full text of “Your Own Timer” 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 “Your Own Timer”?

Change the count. 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 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Your Own Timer” 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. Counting Down to Zero
  2. Waiting with setTimeout
  3. Blast Off!
  4. Your Own Timer
← Back to Javascript for Kids