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 ...
Get Get Programming with JavaScript Next 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.