var a = 12,b=13,c; c = a; a = b; b = c; console.log(a,b);//13,12
var a = 12,b=13; [a,b] = [b,a]; console.log(a,b);