Using Your Variables
Show and combine the values you saved.
Using Your Variables is a free Javascript for Kids lesson on CoddyKit — lesson 4 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.
Use Your Boxes!
Hi, coder! 👋 Now let us use our variable boxes to do cool things! 📦✨
Print a Box
You already know how to print a box. Just use its name! 🖨️
let name = "Leo"
console.log(name)Join Words With +
The + sign can join words together! 🔗
This is called putting strings together.
Greet by Name
Run this to make a friendly greeting! 👋
let name = "Leo"
console.log("Hello, " + name + "!")The Space Trick
Notice the space inside "Hello, "? 🔍
Without it, words would stick together likethis! Spaces matter.
Combine Two Boxes
You can join two boxes together! Run this. 🤝
let first = "Super"
let second = "Coder"
console.log(first + second)Add Numbers in Boxes
Boxes with numbers can be added! Run this. ➕
let apples = 3
let oranges = 2
console.log(apples + oranges)Make a Sentence
Use boxes to build a fun sentence! Run this. 📝
let hero = "Captain Code"
let city = "Funtown"
console.log(hero + " protects " + city + "!")Boxes Save Time
If you use a name in many places, a box saves you work! 🕒
Change the box once, and it updates everywhere you use it.
Score Report
Run this to show a score message! 🎮
let player = "Mia"
let points = 250
console.log(player + " scored " + points + " points!")Boxes Are Powerful
Using variables lets you build greetings, sentences, and scores. 💪
They make your code smart and flexible!
Quick Check
Using quiz! 🔗
Variable Star!
Woohoo! 🎉 You can now use and combine your variables to build cool messages!
You are a variable star! ⭐📦
Frequently asked questions
Is the “Using Your Variables” lesson free?
Yes — the full text of “Using Your Variables” 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 “Using Your Variables”?
Show and combine the values you saved. 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 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Using Your Variables” 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
- What Is a Variable?
- Making and Naming Boxes
- Changing What Is Inside
- Using Your Variables