Created
February 24, 2017 21:21
-
-
Save Kolenov/2d73b6d1dddf11800eda0ccf2140e5f6 to your computer and use it in GitHub Desktop.
Swap two variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = 1; var b = 2; [a,b] = [b,a]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment