Javascript for Kids · Lesson

Rows of Emojis

Use loops.

Lesson 2 of 413 steps

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

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! 🖼️

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 “Rows of Emojis” lesson free?

Yes — the full text of “Rows of Emojis” 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 “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, so you can start here or from the beginning and move at your own pace. This is lesson 2 of 4.

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