Added samples
This commit is contained in:
@ -4,4 +4,5 @@ Use array destructuring to swap values between two variables.
|
||||
|
||||
```js
|
||||
[varA, varB] = [varB, varA];
|
||||
// [x, y] = [y, x]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user