O'Reilly logo

Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond by JD Isaacks

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

Unit 2. Objects and arrays

Objects and arrays have always been the workhorse of JavaScript, acting as the go-to data structures for organizing data. Even with the additions of maps and sets, which you’ll learn about in unit 5, objects and arrays aren’t going anywhere and will still be used just as much as before.

Notice how I referred to objects and arrays as data structures. With literals, you can easily structure your data into complex structures that would be tedious to describe without literals. The inverse has always been missing. You probably never even noticed its absence, but once you see how awesome it is to be able to destructure your data as easily as you structure it, you may begin to feel handicapped anytime you have to go back ...

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