Atom

Destructuring

Destructuring pulls several pieces out of one value into separate bindings. It is useful when a small group of values belongs together.

Name the parts of a pair

Unpack the two entries in order.

Atom
[width, height] = [5, 3]
print(width * height)
Output
15

width holds 5 and height holds 3. The program multiplies the two values.