snippet

How to swap two variables on Javascript

// Simple swap a to b for exemple
[a, b] = [b, a];
Related snippets