Making Choices
Programs can decide: IF this, THEN that.
Making Choices 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.
Superpower Number Two! 🦸
Welcome back, coder! 🎉 Time for your SECOND superpower: making choices! 🤔
Programs can decide things, just like YOU do every day! ✨
IF and THEN 🌧️☂️
Here is the magic spell: IF this, THEN that. ✨
IF it is raining, THEN grab an umbrella! ☂️
IF it is sunny, THEN wear a hat! 🧢
That's a choice! 😄
Choices All Day 🌞
You make choices ALL day long! 🤩
- IF you are hungry, THEN you eat 🍎
- IF the light is red, THEN you stop 🔴
- IF it is bedtime, THEN you brush your teeth 🪥
Computers do the very same thing! 💻
Yes or No? ✅❌
A choice asks a question with only two answers: yes or no. 🤔
"Is it dark outside?" Yes ✅ or No ❌?
IF yes → turn on the lights! 💡
ELSE: The Other Way 🔀
Sometimes we add an ELSE — that means "otherwise!" 😄
IF it is raining, THEN take an umbrella. ☂️
ELSE, take your sunglasses! 😎
One choice, two paths! 🛤️
Games Make Choices 🎮
Games decide things super fast! ⚡
IF you touch the gold coin, THEN your score goes up! 🪙
IF a monster touches you, THEN you lose a life! 👾💔
Choices make games exciting! 🤩
A Treasure Map Choice 🗺️
You reach a fork in the path! 🌲🌲
IF the left path has flowers, THEN go left. 🌸
ELSE, go right toward the treasure! 💎
Choices help us find the way! 🧭
Robot, Follow My Choice! 🤖
Tell your robot a choice: 🤖
"IF you see a wall, THEN turn around!" 🧱🔄
The robot checks: is there a wall? If yes, it turns. If no, it keeps going. 🚶
Choices Need a Question ❓
Every choice starts with a question that is yes or no. 🤔
"Is the cup empty?" "Is it your turn?" "Are you happy?" 😊
The answer decides what happens next! 🎯
Be the Decider! 🧠
Try this game with a friend! 🙌
Say: "IF I clap, THEN you jump. ELSE, you sit!" 👏🦘
Now clap... or don't! Watch them choose what to do! 😄 You made a program with words! 🎉
You've Got the Power! 💪
Choices = IF this, THEN that, and sometimes ELSE! 🔀
They let programs think and decide, just like you. 🧠✨
Superpower number two: UNLOCKED! 🔓🎉
Quick Check
Time to test your choice power! 🦸 Finish the spell:
Amazing Work! 🌟
You unlocked your second superpower: making choices! 🤔🦸
IF this, THEN that — now your programs can decide! 🧠
Next up: fixing BUGS! Don't worry, bugs are friendly. 🐞 See you there! 👋
Frequently asked questions
Is the “Making Choices” lesson free?
Yes — the full text of “Making Choices” 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 Choices”?
Programs can decide: IF this, THEN that. 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 Choices” 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.