OOP Studio Ages 9-15
Collection Challenge: Supply Drop
Choose loop code that activates every object in a collection.
Your task
Three supply objects are stored in the powerUps array. Complete the loop so every object runs activate().
Why a loop?
It repeats the command for every object without naming Star, Shield, and Key separately.
Win
Activate all three array slots with one correct line of JavaScript.
Which line reaches every object?
for (let powerUp of powerUps) {}Choose the missing line.
See the complete JavaScript
Supply objects waiting
powerUps[0]
Magic Star · 10 points
Magic Star · 10 pointspowerUps[1]
Shield · 5 points
Shield · 5 pointspowerUps[2]
Magic Key · 3 points
Magic Key · 3 points0 of 3 activated
Supply drop activated!
One loop called a method on every object.
Completed! Start Inheritance