Files
30-seconds-of-code/snippets/swap-values-of-two-variables.md
Angelos Chalaris f40115ff3b Swap, anagrams, occurences
Fixed sorting title for strings.
2017-12-06 23:50:23 +02:00

136 B

Swap values of two variables

Use array destructuring to swap values between two variables.

[varA, varB] = [varB, varA];