Learn about indices, push, delete, and more.
- [Instructor] In this video we're going…to get into manipulating arrays,…how you can see what's in an array,…and how we can take action on the contents of an array.…We'll use this counties array with a few counties in it,…for demonstration purposes.…I'm going to copy this and bring it over to the browser…and paste it in.…If I want to get a specific item from an array,…I need to retrieve it using the square braces notation…we saw with objects.…Although arrays are technically objects,…the dot notation doesn't work, only the square braces.…So to get the first item from counties, I use zero.…
Always remember, arrays are what we call zero indexed.…Each item in an array is assigned an index,…same as the key in an object,…but with arrays we just usually call it an index.…And those indexes start with zero, always.…Just to be 100% clear on this, the first item is zero…and any other item would be retrieved…by its index from there, one, two, three.…So let's try two here.…Zero, one, two, and we get Carroll.…The way this syntax is often read out loud,…
- 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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.