Code Studio · Level 7
Object Builder
Make your own hero object, then pass it into a function. The function reads the object's properties and your character card snaps together.
Build a profile card.
Example code
let hero = {
name: "Nova",
tool: "debug wand",
level: 3
};
function showHero(character) {
say(character.name + " carries a " + character.tool);
say("Level " + character.level);
}
showHero(hero);
🧩 Tap to add code blocks — they snap into the right spot
Name your hero Nova, Bolt, Kai, Milo, Wizard, Knight, Dragon, Unicorn, Cat, Dog for a matching avatar.
wand/magic
star
shield
wand/magic
star
shield
Your Hero Card
Run your code to build the card…
Waiting for your object…
🦸 Hero unlocked! Object builder complete.
You grouped the details inside one hero object, then passed that whole object into showHero() — the function read every property to build the card.