// assign(): used to assign the values of from one object to the taget object
// Object.assign(target, source)
let obj1={1:"a",2:"b",3:"c"};
let obj2=Object.assign({"this":"can be the new object",1:"mayur"},obj1);//if the key was already assign in the source object it will not change that
console.log(obj1);
console.log(obj2);