Consider this scenario where we have an object:
let obj = { a: 1, b: 2 }
let { a, b } = obj;
console.log(a, b); // output 1, 2
Now, let's examine a different case where 'a' and 'b' are already initialized:
let obj = { a: 1, b: 2 };
let a = 3, b = 4;
{ a, b } = obj;
console.log(a, b); // error
What sets these two situations apart and causes the second one to result in an error?