const a = { id: 1, name: 'Yogesh', age: 30, education: { degree: 'Bachelor' } }; const {education: {degree}} = a; console.log(degree); //prints: Bachelor