If you're seeing this message, it means we're having trouble loading external resources for Khan Academy.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Arrays

1 project
1 article
3 challenges
3 talkthroughs
Store multiple values in your variables with arrays!

Intro to Arrays

Pamela introduces arrays, a nifty way to store a sequence of multiple values in one variable.

Looping through Arrays

Pamela explains how to use loops to iterate through each value in an array.

Modifying Arrays

Pamela shows how to modify an array while your code is running, to add or change values.

Project: Make it Rain

<p>To make an animation of rain, it's best if we use arrays to keep track of the drops and their different properties. Start with this simple code and build on it to make a cool rain animation. Here are some ideas for what you could ...