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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access