// Object assign in javascript let fname = { firstName : 'Black' }; let lname = { lastName : 'Panther'} let full_names = Object.assign(fname, lname); console.log(full_names); //{ firstName: 'Black', lastName: 'Panther' }