Skip to content

Glossary: Coding Interviews in JavaScript

Destructuring

Also written: destructuring swap

JavaScript syntax that copies the items of an array into separate variables, such as `const [row, col, steps] = item`. It also swaps two values: `[a, b] = [b, a]`.

Where the book teaches it

Related terms

Two pointers