We’ve learned to do a number of interesting things with data using functions and using if/else statements. One thing that we haven't learned yet is how to organize and store data.

One way we organize data in real life is to make lists. Let's make one here:

Bucket List:
0. Rappel into a cave
1. Take a falconry class
2. Learn to juggle

Let's now write this list in JavaScript, as an array:

var bucketList = ['Rappel into a cave', 'Take a falconry class', 'Learn to juggle'];

Arrays are JavaScript's way of making lists. These lists can store different data types and they are ordered, meaning the position of each list item is numbered by JavaScript.


Click 'Next' to continue.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.