// AS-IS
let bfArr = ['nodejs', {}, 10, true];
let bfNode = bfArr[0];
let bfObj = bfArr[1];
let bfBool = bfArr[3];
// TO-BE : 배열에 대한 구조분해 할당
let afArr = ['nodejs', {}, 10, true];
let [afNode, afObj, , afBool] = afArr; // 1, 2, 4번째 요소를 변수에 대입
console.log('bfNode', bfNode);
console.log('bfObj', bfObj);
console.log('bfBool', bfBool);
console.log('afNode', afNode);
console.log('afObj', afObj);
console.log('afBool', afBool);
Ly8gQVMtSVMKbGV0IGJmQXJyID0gWydub2RlanMnLCB7fSwgMTAsIHRydWVdOwpsZXQgYmZOb2RlID0gYmZBcnJbMF07CmxldCBiZk9iaiA9IGJmQXJyWzFdOwpsZXQgYmZCb29sID0gYmZBcnJbM107CgovLyBUTy1CRSA6IOuwsOyXtOyXkCDrjIDtlZwg6rWs7KGw67aE7ZW0IO2VoOuLuQpsZXQgYWZBcnIgPSBbJ25vZGVqcycsIHt9LCAxMCwgdHJ1ZV07CmxldCBbYWZOb2RlLCBhZk9iaiwgLCBhZkJvb2xdID0gYWZBcnI7CS8vIDEsIDIsIDTrsojsp7gg7JqU7IaM66W8IOuzgOyImOyXkCDrjIDsnoUKCmNvbnNvbGUubG9nKCdiZk5vZGUnLCBiZk5vZGUpOwpjb25zb2xlLmxvZygnYmZPYmonLCBiZk9iaik7CmNvbnNvbGUubG9nKCdiZkJvb2wnLCBiZkJvb2wpOwoKY29uc29sZS5sb2coJ2FmTm9kZScsIGFmTm9kZSk7CmNvbnNvbGUubG9nKCdhZk9iaicsIGFmT2JqKTsKY29uc29sZS5sb2coJ2FmQm9vbCcsIGFmQm9vbCk7