Code Studio · Level 6 Builder
Build the Alien Launch Team
Put three alien names into one array, then use one loop to activate every teammate.
1. Build the arrayClick each alien to add a name to
team.2. Notice the indexThe first teammate is
team[0], not team[1].3. Run one loopThe loop visits all three slots without three separate commands.
Add Nova, Milo, and Tilla to the team.
let team = [
click an alien
];
Choose the three aliens to build the array.
The launch pads are waiting.
team[0]
NovaBUILDER
NovaBUILDER
team[1]
MiloDEBUGGER
MiloDEBUGGER
team[2]
TillaHELPER
TillaHELPER
0 of 3 aliens activated
- Run the loop to visit each array item.
Launch team activated!
Your loop visited every name stored in the team array.