Question #92

Author: admin
tags: JavaScript  
const house = {
  bedroom: {
    ownerId: 1,
    furniture: {
      sofa: {
        color: 'red',
      },
    },
  },
};

// ??

console.log(color, furniture);
Which lines can be inserted instead of ?? to get two variables color and furniture using nested destructuring assignment syntax?
const { bedroom.furniture, bedroom.furniture.sofa.color } = house;
const { color, furniture } = house;
const { bedroom: { furniture, furniture: { sofa: { color } } } } = house;
const { bedroom: { furniture }, bedroom: { furniture: { sofa: { color } } } } = house;
const { bedroom: { furniture: { sofa: { color } } } } = house;
const { bedroom: { furniture as furniture: { sofa: { color as color } } } } = house;
Rate the difficulty of the question:
easyhard