5.10 해체 할당 (destructuring assignment)
//배열 선언
const arr =[1, 2, 3];
// 배열 해체 할당
let [x, y] = arr;
x; // 1
y; // 2
z; // 정의되지 않음Last updated
//배열 선언
const arr =[1, 2, 3];
// 배열 해체 할당
let [x, y] = arr;
x; // 1
y; // 2
z; // 정의되지 않음Last updated