Swap, anagrams, occurences
Fixed sorting title for strings.
This commit is contained in:
7
snippets/swap-values-of-two-variables.md
Normal file
7
snippets/swap-values-of-two-variables.md
Normal file
@ -0,0 +1,7 @@
|
||||
### Swap values of two variables
|
||||
|
||||
Use array destructuring to swap values between two variables.
|
||||
|
||||
```js
|
||||
[varA, varB] = [varB, varA];
|
||||
```
|
||||
Reference in New Issue
Block a user