Printing Words and Numbers
Show different kinds of messages.
Printing Words and Numbers 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.
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! 🥷
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, 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 “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; 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 “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
- Your First Message with console.log
- Printing Words and Numbers
- Printing Many Lines
- Fun with Emojis and Symbols