const obj1 = { id: 7, name: 'jinle' } const obj2 = { name: 'ssszzz', ...obj1} const obj3 = { ...obj1, name: 'ssszzz'} console.log('obj1', obj1) console.log('obj2', obj2) console.log('obj3', obj3) const arr1 = [1, 2, 3] const arr2 = [...arr1, 3] console.log('arr1', arr1) console.log('arr2', arr2)