더북(TheBook)

구조분해 할당 문법이 나오기 전에는 다음과 같이 코드를 짜야 했습니다.

let a = 5;
let b = 3;
let temp = a;
a = b;
b = temp;