O'Reilly logo

JavaScript: 20 Lessons to Successful Web Development by Robin Nixon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Images

Creating JavaScript Arrays

image

         To view the accompanying video for this lesson, please visit mhprofessional.com/nixonjavascript/.

JavaScript is capable of managing data in a more powerful manner than simply via variables. One example of this is JavaScript arrays, which you can think of as collections of variables grouped together. For example, a good metaphor for an array might be a filing cabinet with each drawer representing a different variable, as shown in Figure 5-1.

FIGURE 5-1 A filing cabinet representing a 10-element array

As with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required