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

// Create an object with properties 'a', 'b', and 'c' with corresponding values const object1 = { a: 'string', b: 34, c: true }; // Create another object with properties 'a', 'b', and 'c' with corresponding values const object2 = { a: 'start', b: 33, c: false }; // Output arrays containing the values of object1 and object2's properties respectively console.log(Object.values(object1), Object.values(object2));

Output: