September 2024
Beginner to intermediate
985 pages
35h 37m
English
You’re now familiar with objects and arrays, two of the most important reference data types. Before we introduce the other reference data types, let’s briefly present the principle of destructuring or destructuring statements in a short intermezzo because it’s directly related to arrays and objects. Destructuring enables you to relatively easily assign values stored in object properties or arrays to different variables (i.e., to "extract" them from the object or array). A distinction is made between array destructuring and object destructuring.
Array destructuring provides a simple way to assign the values of an array to a set of variables. This can save ...
Read now
Unlock full access