Type Your Code Here

const object1 = { property1: 42 }; // Defines an object object1 with a property property1 Object.seal(object1); // Prevents other code from deleting properties of an object object1.property1 = 45; console.log(object1.property1); // Outputs: 45 delete object1.property1; // Cannot delete when sealed console.log(object1.property1); // Outputs: 45 (property1 still exists) const object2 = { property2: 45}; // Defines an object object2 with a property property2 object2.property2 = 67; console.log(object2.property2); // Outputs: 67

Output: