Back to Array Builder
Code Studio · Level 6

Array Challenge: Load the Rocket 🚀

Make an array of supplies, then loop through it to load the rocket. Pack 3 or more items and it blasts off!

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

Write your supply list.

Example code
let missionItems = ["star", "key", "rocket"];

for (let i = 0; i < missionItems.length; i++) {
  pack(missionItems[i]);
}
star key rocket moon shield dragon unicorn cookie …any other word becomes a 📦 crate!
Launch Pad

Mission Control

Cargo loaded: 0  ·  need 3 to launch

Rocket on the launch pad
Run your code to load supplies…

Waiting for your array…