In this video we're going to talk about arrays which are a way of storing data …that preserves order. Okay, so we've already looked at a way to …store data if you want to group things together that is objects. …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. …So for example, let's say you wanted to store something like 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're better served …using an array. So, how do we make one? …Let's make a variable and we'll call it my array.…
It's very similar to an object, except instead of using curly braces, you use …square braces, like this. So now if I get my array, you can see I …get back the empty square braces. So, if I want to create my list of days …of the week, I'm going to call this Days of the week. …Two square braces and now I'm going to fill it with the days of the week. …So, Sunday, Monday. I'm not going to actually go all the way …
- 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.