Skip to content

Instantly share code, notes, and snippets.

@Kolenov
Created February 24, 2017 21:21
Show Gist options
  • Save Kolenov/2d73b6d1dddf11800eda0ccf2140e5f6 to your computer and use it in GitHub Desktop.
Save Kolenov/2d73b6d1dddf11800eda0ccf2140e5f6 to your computer and use it in GitHub Desktop.
Swap two variables
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