Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed JavaScript Arrays!
You have completed JavaScript Arrays!
Preview
The for loop provides one way to loop (or iterate) through the elements in an array.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
[MUSIC]
0:00
Arrays are one of the most used
data structures in JavaScript.
0:01
With an array,
0:05
you can assign an almost limitless
number of items to a single variable.
0:05
You've learned how you
might use arrays to, for
0:09
instance, hold the tasks in a to do list,
or
0:12
to store the names of students in a class,
create a musical playlist, and more.
0:15
Once you have an array, you'll want
to work with the elements inside it.
0:20
For example, for
0:24
a musical playlist, you might want
to display each song in the list.
0:25
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up