// Object.seal(obj):- method of JavaScript seals an object which prevents new properties from being added to it and marks all existing properties as non-configurable.
const obj1 = { property1: 'Marry'};
const obj2 = Object.seal(obj1);
// prevents other code from deleting properties of an object.
obj2.property1 = 'carry';
console.log(obj2.property1);