Write Your JavaScript Code Here

const obj1 = { property1: 'Marry'}; // Defines an object obj1 with a property property1 const obj2 = Object.seal(obj1); // Prevents other code from deleting properties of an object obj2.property1 = 'carry'; console.log(obj2.property1); // Outputs: carry

Output: