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.
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
star
key
Your Creation
Run your code to bring your class to life…
Waiting for your class…
🏆 Challenge complete! Your blueprint works.
You designed your own class, used new to stamp a real object from it, and called one of its methods. That is exactly how coders build games, apps, and worlds.