Prototype-based Inheritance in JavaScript with Constructors using Object.create()

const object1 = { property1: 29 }; // 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

Output: