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

// Create an object with a property 'property1' having the value 56 const object1 = { property1: 56 }; // Check if the object1 is equal to itself console.log(Object.is(object1)); // Seal the object1, preventing any new properties from being added and marking all existing properties as non-configurable Object.seal(object1); // Check if object1 is sealed console.log(Object.isSealed(object1));

Output: