Making and Naming Boxes
Create variables with let and good names.
Making and Naming Boxes 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.
Make Your Own Box
Hi again! 👋 Today you will make and name your own variable boxes! 📦
The Recipe
Making a box has three parts:
let— the magic word- a name — your label
=and a value — what goes inside
Your First Box
Run this to make a box named name holding "Mia"! ▶️
let name = "Mia"
console.log(name)The Equals Sign
The = sign means "put this inside the box". 📥
It is NOT like math equals. It means "store it"!
Name Your Box Clearly
Give your box a name that makes sense! 🏷️
Use pet for a pet, score for points. Clear names help!
A Box for Your Pet
Run this to store a pet name. 🐱
let myPet = "Whiskers"
console.log(myPet)Box Naming Rules
A few easy rules for box names:
- No spaces (use myPet, not my pet)
- Start with a letter
- No silly symbols
A Box for Your Score
Run this to store your game score! 🎮
let score = 100
console.log(score)Make Several Boxes
Run this to make three boxes at once! 🎁🎁🎁
let hero = "Captain Code"
let level = 5
let city = "Funtown"
console.log(hero)
console.log(level)
console.log(city)Good Names Help
Good box names make your code easy to read. 📖
Future you will say "thank you"! 😄
You Are a Box Maker
Now you can make and name your own boxes any time! 🛠️
This is a super important coding skill.
Quick Check
Naming quiz! 🏷️
Box Builder!
Hooray! 🎉 You can now make and name your own variable boxes with let.
You are a box builder! 🛠️
Frequently asked questions
Is the “Making and Naming Boxes” lesson free?
Yes — the full text of “Making and Naming Boxes” 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 “Making and Naming Boxes”?
Create variables with let and good names. 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 “Making and Naming Boxes” 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