In this video, we're going to get into manipulating arrays. …How we can see what's in an array, and how we can take action on the contents of …an array. So, we're going to use this counties …array, with a few counties in it, for demonstration purposes. …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. …So. Counties, and I'll use the square braces. …Although arrays are technically objects, the dot notation will not work.…
Always square braces. So, to get the first item, I use zero. …Always remember, arrays are what we call zero indexed. …Each item in an array is assigned an index, and those indices start with zero, always. …So just to be 100% clear on this, the first item, zero, and any other item …would be retrieved by its index. So two, we go from zero, one, two, and we …get Carol. And just a descriptive note, the two here …is the index, and you'll hear that item referred to as, in this case, counties …indexed two, or sometimes counties sub two.…
- Enabling Firebug and web inspectors
- Using a text editor
- Declaring and assigning a variable
- Booleans and the quest for truth
- Working with objects and arrays
- Using operators and control structures
- Iterating with loops
- Objects, references, and functions
- Understanding variable scope
Skill Level Beginner
Q: In "How to enable Firebug and web inspectors," at the Chrome Canary part, the author mentions going to the View menu, and then Developer. My Canary has no menu bar. The author uses a Mac, whereas I have Windows. How do I get to the same place?
A: Click the menu button at the top right of Chrome, select More Tools, and then choose Developer Tools.
1. Getting Started
Our friend, the text editor3m 35s
2. Variables and Types
3. Objects, Arrays, and More
4. Operators and Control Structures
5. Iterating with Loops
- 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.