Write Your JavaScript Code Here

const object1 = { property1: 42 // object1 with property1 set to 42 } const object2 = { property2: 34 // object2 with property2 set to 34 } const descriptor1 = Object.getOwnPropertyDescriptor(object1, 'property1'); // descriptor for object1's property1 const descriptor2 = Object.getOwnPropertyDescriptor(object2, 'property2'); // descriptor for object2's property2 console.log(descriptor1.enumerable); // logs whether property1 is enumerable console.log(descriptor2.enumerable); // logs whether property2 is enumerable console.log(descriptor1.value); // logs the value of property1 console.log(descriptor2.value); // logs the value of property2

Output: