const someone = {
    firstname: 'Don',
    lastname: 'Lee',
    born: 1920,
    died: 1985,
    gender: 'male'
}

function entireName({ firstname, lastname }) {
    return `${firstname} ${lastname}`
}



강의에서 하는 대로 똑같이 했는데 내건 왜 실행안됨???


Uncaught TypeError: Cannot destructure property 'firstname' of 'undefined' as it is undefined.


왜안되냐고 ㅅㅂ 뭐 잘못적은거 있음?