0Pricing
Javascript for Kids · Lesson

Planning the Adventure

Design the game.

Planning the Adventure 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.

Your Own Adventure! 🗺️

Get ready to build an Adventure Story Game! 🐉 The player makes choices and explores. But every great adventure starts with a PLAN! Let us design it!

The Story Idea 💭

First, dream up your story! A dragon? A treasure cave? A space trip? Pick something exciting!

let title = "The Cave of Gold"
console.log("Welcome to: " + title + " 🏆")

The Hero 🦸

Every adventure needs a hero! Store the hero name in a variable.

let hero = "Captain Maya"
console.log("Our hero is " + hero + "! 🦸")

Where the Story Begins 📍

Set the starting place. This is where the adventure kicks off!

let location = "a dark forest"
console.log("You wake up in " + location + ". 🌲")

The Goal 🎯

What is the player trying to do? Reach the treasure! Save the kingdom! Store the goal.

let goal = "find the golden crown"
console.log("Your mission: " + goal + " 👑")

Story Steps in a List 📝

Plan the steps of your story in a list. Like chapters in a book!

let steps = ["Enter the cave", "Cross the bridge", "Find the treasure"]
console.log("Step 1: " + steps[0])

Telling the Story 📖

Print the story parts one at a time so the player can follow along.

console.log("Once upon a time... 📖")
console.log("A brave hero began a quest. 🗡️")

Setting the Scene 🎬

Describe what the player sees. Good details make it exciting!

let scene = "You see a glowing door and a sleeping dragon. 🐉"
console.log(scene)

Items to Collect 🎒

Adventures have treasures and tools! Store the player items in a list.

let bag = ["torch", "map"]
console.log("Your bag has:", bag)

A Story Function 🛠️

Make a helper that tells a part of the story. Reuse it for each scene!

function tell(text) {
  console.log("📖 " + text)
}
tell("You step into the misty cave...")

The Plan is Ready! ✅

You designed a hero, a goal, story steps, and items. Your adventure has a map! Time to add CHOICES! 🗺️

let hero = "Maya"
let goal = "find the crown"
console.log(hero + " sets out to " + goal + "! 🚀")

Quick Check ❓

Plan your answer! 🧠

Story Planner! 🌟

Recap! You learned to:

  • 💭 Pick a story idea
  • 🦸 Set up a hero and goal
  • 📝 Plan steps in a list
  • 🛠️ Make a story function

Next: making choices that branch the story! 🌿

Frequently asked questions

Is the “Planning the Adventure” lesson free?

Yes — the full text of “Planning the Adventure” 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 “Planning the Adventure”?

Design the game. 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 “Planning the Adventure” 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

  1. Planning the Adventure
  2. Making Choices
  3. Winning
  4. Game Over
← Back to Javascript for Kids