Javascript for Kids · Lesson

Printing Words and Numbers

Show different kinds of messages.

Lesson 2 of 413 steps

Printing Words and Numbers 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.

Words and Numbers

Welcome back! 👋 Today you will print both words and numbers.

console.log can do both!

Printing Words

To print words, put them inside quotes. 🗣️

Like console.log("Cookies")

Try Printing Words

Run this to print a yummy word! 🍪

console.log("Chocolate")

Printing Numbers

To print a number, you do not need quotes. 🔢

Just write the number, like console.log(7)

Try Printing a Number

Run this to print your lucky number! 🍀

console.log(7)

Numbers Are Special

The computer knows 7 is a number, but "7" in quotes is treated like a word. 🤔

Pretty clever, right?

Print Big Numbers

You can print any number, even big ones! Run this. 🚀

console.log(1000000)

Words AND Numbers

You can print words on one line and numbers on another. Run this!

console.log("My age is")
console.log(9)

Counting Treats

Run this to count your candy! 🍬

console.log("Candies:")
console.log(12)

Mix It Up

Words tell a story, numbers count things. 📖🔢

Together they are super useful in coding!

You Print Both!

Now you can print words AND numbers. 🎉

Remember: words need quotes, numbers do not!

Quick Check

Quiz time! 🎯

Number Ninja!

Fantastic! 🎉 You can now print words (with quotes) and numbers (no quotes).

Great job, number ninja! 🥷

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 “Printing Words and Numbers” lesson free?

Yes — the full text of “Printing Words and Numbers” 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 “Printing Words and Numbers”?

Show different kinds of messages. 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 “Printing Words and Numbers” 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. Your First Message with console.log
  2. Printing Words and Numbers
  3. Printing Many Lines
  4. Fun with Emojis and Symbols
← Back to Javascript for Kids