showing results for - "why js object alis are on the lef"
Tomas
06 May 2016
1let a = 1;
2let b = 3;
3
4[a, b] = [b, a];
5console.log(a); // 3
6console.log(b); // 1
7
8const arr = [1,2,3];
9[arr[2], arr[1]] = [arr[1], arr[2]];
10console.log(arr); // [1,3,2]
11
12
similar questions
queries leading to this page
why js object alis are on the lef