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 Array Iteration Methods!
You have completed JavaScript Array Iteration Methods!
Preview
As a JavaScript developer, you'll often work with arrays of objects. Get some practice using the methods you've learned with arrays of objects.
Snippets from the Video
const users = [
{name: 'Samir'},
{name: 'Angela'},
{name: 'Beatrice'}
];
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
Arrays are great ways to bundle different
pieces of data about one thing.
0:00
For instance,
if you are dealing with a user
0:03
you might want to know the users name,
age, and birthday.
0:06
In JavaScript, you'd need three different
data types to store these details,
0:09
a string, number and a date.
0:13
With objects, you can bundle these
together and add labels to each piece of
0:16
data, or strings, so
you can use to ask for the data later.
0:19
If you are working with users though,
0:23
you will need to be able
to store many of them.
0:25
To keep track of all the user objects,
you might put them into an array.
0:28
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