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

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 ...

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