0Pricing
Javascript for Kids · Lesson

Rows of Emojis

Use loops.

Rows of Emojis is a free Javascript for Kids lesson on CoddyKit — lesson 2 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.

Rows of Emojis! 🔁

Welcome back, emoji artist! 🌟 Last time we printed single emojis. 😄

Today we use a loop to repeat emojis and make rows! 🔁 Super fun!

What is a Loop? 🔄

A loop repeats an action many times so you don't have to type it over and over! 🔄

Perfect for printing lots of emojis! 🎉

for (let i = 0; i < 3; i++) {
  console.log('🎈');
}

Counting With the Loop 🔢

The loop counts from 0 up to a number. 🔢

i < 5 means it repeats 5 times. Let's print 5 stars! ⭐

for (let i = 0; i < 5; i++) {
  console.log('⭐');
}

Building a Row ➡️

Instead of one per line, let's build a row in a box! ➡️

We add an emoji each loop, then print at the end. 🪄

let row = '';
for (let i = 0; i < 5; i++) {
  row = row + '🍎';
}
console.log(row);

A Longer Row 📏

Want more emojis? Just change the number! 📏

Let's make a row of 10 fish! 🐠

let row = '';
for (let i = 0; i < 10; i++) {
  row = row + '🐠';
}
console.log(row);

Rows With Spaces 〰️

Add a space between emojis to spread them out! 〰️

It makes the row easier to see. 👀

let row = '';
for (let i = 0; i < 6; i++) {
  row = row + '🌸 ';
}
console.log(row);

Many Rows 📚

Print several rows by looping again! 📚

Each loop makes a new line of emojis. 🎊

for (let i = 0; i < 3; i++) {
  console.log('🐶🐶🐶🐶');
}

An Emoji Counter 🔢

The loop number can be part of the message! 🔢

Let's show which star we are printing. ⭐

for (let i = 1; i <= 4; i++) {
  console.log('Star number ' + i + ' ⭐');
}

A Row Machine 🤖

Let's build a function that makes any emoji row! 🤖

Tell it the emoji and how many. It does the rest! 🎉

function emojiRow(emoji, count) {
  let row = '';
  for (let i = 0; i < count; i++) {
    row = row + emoji;
  }
  console.log(row);
}
emojiRow('🍕', 6);

Use Your Row Machine 🎛️

Now make all kinds of rows easily! 🎛️

Just call the machine with different emojis and numbers! 🤩

function emojiRow(emoji, count) {
  let row = '';
  for (let i = 0; i < count; i++) {
    row = row + emoji;
  }
  console.log(row);
}
emojiRow('🌟', 8);
emojiRow('🐝', 4);

You Made Emoji Rows! 🏆

Brilliant work! 🏆 You learned to:

  • 🔁 Use a loop to repeat
  • ➡️ Build a row by adding emojis
  • 🤖 Make a row machine with a function

Next lesson: drawing emoji pictures! 🖼️

Quick Check ✅

Brain time! 🧠 What does a loop help us do with emojis?

Lesson Recap 🎀

Super job, loop master! 🎀 Today you learned:

  • 🔁 Loops repeat for us
  • ➡️ Build a row by adding emojis
  • 🤖 A function makes any row

Next: emoji pictures! 🖼️

Frequently asked questions

Is the “Rows of Emojis” lesson free?

Yes — the full text of “Rows of Emojis” 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 “Rows of Emojis”?

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

How long does the “Rows of Emojis” 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. Printing Emojis
  2. Rows of Emojis
  3. Emoji Pictures
  4. Your Own Art
← Back to Javascript for Kids