javascript swap two variables without temp code example Example: swap variables using temp javascript [a, b] = [b, a];