分割代入で何をしているのかわかりません

順を追って説明していきます。
2021年1月11日
ユーザー

ここでどのような操作がされているのかがわかりません。
よろしくお願いします。

[
this.tiles[blankRow][blankCol],
this.tiles[destRow][destCol],
] = [
this.tiles[destRow][destCol],
this.tiles[blankRow][blankCol],
];

[blankCol, blankRow] = [destCol, destRow];

この回答を見るにはプレミアムプランへの登録が必要です

プレミアムプランとは?