What is the result of the following code?
const obj = { a: 1, b: 2 }; const { a, b } = obj; console.log(a, b);
{ a: 1, b: 2 }
1 2
undefined undefined
Error
This question is part of this quiz :