const item = {type: '👕',size:'M'};
const detail = {price:20, made:'Korea'};
const newObject = new Object();
newObject['type'] = item.type;
newObject['size'] = item.size;
newObject['price'] = detail.price;
newObject['made'] = detail.made;
mewObject['gender'] = detail.gender;
const newObject2 = {
type: item.type,
size: item.size,
price : detail.price,
made : detail.made,
gender: detail.gender,
};
const shirt0 = Object.assign (item,detail);
const shirt = {...item,...detail}:
let fruits = ['🍓','🍉','🍐'];
fruits = [...fruits,'🍊'];
fruits = ['🍇',...fruits];
const fruits2 = ['🍈','🍍'];
let combined = fruits.concat.fruits2;
combined = [...fruits,'🍒'...fruits2];