Images

Advanced Array Manipulation

image

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

In this final lesson on JavaScript arrays, we finish off our exploration by looking at how to sort the contents of arrays in a variety of different ways and how to manipulate groups of elements within arrays, including removing, inserting, and moving them.

Using sort()

JavaScript comes with a handy sort() function to sort arrays alphabetically in ascending order with case sensitivity. Like reverse(), this function ...

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.