Images

Calling Array Functions

image

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

To make arrays even more powerful, JavaScript comes ready-made with a selection of handy functions and statements for accessing and manipulating arrays. For example, you can join arrays together, push new items into an array (and pop them off again later), reverse the data in an array, sort it alphabetically or numerically, and more.

Therefore, in this and the following couple of lessons, we’ll look at these functions ...

Get JavaScript: 20 Lessons to Successful Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.