Your First Message with console.log
Print a friendly message to the screen.
Your First Message with console.log is a free Javascript for Kids lesson on CoddyKit — lesson 1 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.
Say Hello!
Hi, coder! 👋 Today you will make the computer say its very first message!
We use a magic spell called console.log.
What Is console.log?
console.log tells the computer to print something on the screen. 🖨️
It is like the computer talking to you!
How to Write It
You write the word console.log, then round brackets, and your words inside quotes.
Like this: console.log("Hello!")
Your First Message
Press Run and watch the computer say hello! ▶️
console.log("Hello!")The Quotes Are Important
The words go inside quotes like this: "Hello!" 🗣️
Quotes tell the computer "say these exact words".
Say Your Name
Try making the computer say a name. Run it!
console.log("Hi, my name is Mia!")Say Anything You Want
You can make the computer say anything! 🎉
A joke, a cheer, or a hello to your pet.
Cheer Out Loud
Run this happy cheer! 🥳
console.log("Coding is awesome!")The Round Brackets
The round brackets ( ) hold your message. 📦
Always remember to open and close them!
Greet a Friend
Let us greet a friend. Run this message!
console.log("Hello, friend! Welcome! 🐻")You Did It!
You just made the computer talk! 🗨️ That is a huge step.
Every coder remembers their first console.log.
Quick Check
Message quiz! 📨
Message Master!
Hooray! 🎉 You learned console.log to print your first message.
You made the computer talk. Amazing! 👏
Frequently asked questions
Is the “Your First Message with console.log” lesson free?
Yes — the full text of “Your First Message with console.log” 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 First Message with console.log”?
Print a friendly message to the screen. 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 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Your First Message with console.log” 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