You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Object.freeze(obj); //unable to overrite properties after freeze
// obj.name = "RadheyShyam";
// console.log(obj);
//Object.assign(target,source)
//Properties in the target object are overwritten by properties in the sources if they have the same key. Later sources' properties overwrite earlier ones.
// target, source
// Object.assign(obj,obj2); // merge both object but it will overrite name of one object with other