Looking at this code:
let lecture = { id: 2, title: \"MyTitle\", topics: [ { title: \"John\", age: 1 }, { tit
Probably too late to reply this,
const index = 65 const {title: lectureTitle, topics: {[index]: {age: thirdAge}}} = lecture
because in real life we normally would be using dynamic indices for arrays to destructure, square brackets instead of numbers or just { index: {age}} doesn't work.
square brackets
numbers
{ index: {age}}