Nilai pertukaran antara 2 item dalam array javascript
var a = 1;
var b = 2;
[a,b] = [b,a];
Wandering Warbler
var a = 1;
var b = 2;
[a,b] = [b,a];