Back to Class Builder
Code Studio · Level 8

Class Challenge: Design Your Own Blueprint

Invent your own class — a game level, a pet, a spaceship — stamp an object from it, and call one of its methods.

10-15 min Ages 9-12 Challenge JavaScript
Code Editor

Write your own class.

Example code
class GameLevel {
  constructor(title, goal) {
    this.title = title;
    this.goal = goal;
  }

  start() {
    say("Level: " + this.title);
    say("Goal: " + this.goal);
  }
}

let levelOne = new GameLevel("Star Rescue", "pick up the star");
levelOne.start();
🧩 Tap to add code blocks — build a blueprint and bring it to life
🎯 Make a class, stamp at least 1 object, and call a method to win. Name it Bolt, Nova, Dragon, Unicorn, Cat, Dog… for an avatar. star key
Blueprint Factory

Your Creation

Run your code to bring your class to life…

Waiting for your class…