Arrays are great for lists of the items, often the same kind of items. Length is how big they are.
- [Instructor] In this video we're going…to talk about arrays, which are a way of storing…lists of data that preserves their order.…We've already looked at objects,…which let you group data together.…But there are some cases where you want to store say,…a list of things and the order that those things…appear in is important.…For example, let's say you wanted to store…the days of the week which of course…appear in a certain order.…Or the months of the year, something like that.…In cases like that, you want to use an array.…So how do we make one?…Let's make a variable.…Call it My Array.…
Instead of using curly braces like we do with objects…we just use square braces like this.…So now if I get my array…I get back an empty set of square braces.…If I want to create my list of days of the week…I'll make another variable, call this Days of the Week.…Two square braces, and now I'm going to fill it in…with some days of the week.…Sunday,…Monday,…Tuesday.…I'm not going to bore you by going all the way through these…I'll just make a few.…
- Using a text editor
- Declaring and assigning variables
- Booleans and the quest for truth
- Working with objects and arrays
- Using operators and control structures
- Iterating with loops
- Objects, references, and functions
- Promises, async, and await
Skill Level Beginner
1. Getting Started
2. Variables and Types
3. Objects, Arrays, and More
4. Operators and Control Structures
5. Iterating with Loops
7. More Advanced Pieces
Next steps3m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.